Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template operator|

boost::signals::operator| — Connects two components (typically as a part of branching from a single component).

Synopsis

template<typename Input, typename Output> 
  boost::enable_if< is_component< Input >, Input & >::type 
  operator|(Input & input, Output & output);

Description

This operator is identical to signals::operator>>=, (it connects the left component to the right component, and returns a reference to the left component) except it is evaluated left to right. This makes its semantics more suitable for branching connections.

Copyright © 2007 Stjepan Rajko

PrevUpHomeNext