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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template begins_with



// In header: <boost/log/expressions/predicates/begins_with.hpp>

template<typename T, typename FallbackPolicyT, typename TagT, 
         template< typename > class ActorT, typename SubstringT> 
  unspecified begins_with(attribute_actor< T, FallbackPolicyT, TagT, ActorT > const & attr, 
                          SubstringT const & substring);


The function generates a terminal node in a template expression. The node will check if the attribute value, which is assumed to be a string, begins with the specified substring.