Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function template operator||

boost::algorithm::operator|| — predicate 'or' composition predicate

Synopsis

// In header: <boost/algorithm/string/classification.hpp>


template<typename Pred1T, typename Pred2T> 
  unspecified operator||(const predicate_facade< Pred1T > & Pred1, 
                         const predicate_facade< Pred2T > & Pred2);

Description

Construct the class_or predicate. This predicate can be used to logically combine two classification predicates. class_or holds, if one of the predicates return true.

Parameters:

Pred1

The first predicate

Pred2

The second predicate

Returns:

An instance of the class_or predicate


PrevUpHomeNext