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 to view this page for the latest version.

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.