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

Click here to view the latest version of this page.

Function check_match



// In header: <boost/type_erasure/check_match.hpp>

template<typename Concept, typename Op, class... U> 
  bool check_match(const binding< Concept > & binding, const Op & f, 
                   U &&... args);
template<typename Op, class... U> bool check_match(const Op & f, U &&... args);


If relaxed is in Concept, checks whether the arguments to f match the types specified by binding. If relaxed is not in Concept, returns true. If binding is not specified, it will be deduced from the arguments.