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 require_match



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

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


Checks that the actual types stored in all the any arguments match the types specified by binding. If they do not match then,

If binding is not specified, it will be deduced from the arguments.


call(binding, f, args...) is valid.