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 the documentation for a snapshot of the master branch, built from commit 8b3de1e8d0.
PrevUpHomeNext

Struct template named_parameter_combine

boost::nfp::named_parameter_combine

Synopsis

// In header: <boost/test/utils/named_params.hpp>

template<typename NP, typename Rest = nil> 
struct named_parameter_combine : public boost::nfp::nil {
  // types
  typedef NP::ref_type                        res_type; 
  typedef named_parameter_combine< NP, Rest > self_type;

  // construct/copy/destruct
  named_parameter_combine(NP const &, Rest const &);

  // public member functions
  res_type operator[](keyword< typename NP::id, true >) const;
  res_type operator[](keyword< typename NP::id, false >) const;
  bool has(keyword< typename NP::id, false >) const;
  void erase(keyword< typename NP::id, false >) const;
  template<typename Visitor> void apply_to(Visitor &) const;
  template<typename T> operator T const &() const;
  template<typename T> T any_cast() const;
  template<typename Arg1> nil operator()(Arg1 const &);
  template<typename Arg1, typename Arg2> 
    nil operator()(Arg1 const &, Arg2 const &);
  template<typename Arg1, typename Arg2, typename Arg3> 
    nil operator()(Arg1 const &, Arg2 const &, Arg3 const &);
  template<typename NP> 
    named_parameter_combine< NP, Derived > operator,(NP const &) const;

  // public static functions
  static nil & inst();
};

Description

named_parameter_combine public construct/copy/destruct

  1. named_parameter_combine(NP const & np, Rest const & r);

named_parameter_combine public member functions

  1. res_type operator[](keyword< typename NP::id, true > kw) const;
  2. res_type operator[](keyword< typename NP::id, false > kw) const;
  3. bool has(keyword< typename NP::id, false > kw) const;
  4. void erase(keyword< typename NP::id, false > kw) const;
  5. template<typename Visitor> void apply_to(Visitor & V) const;
  6. template<typename T> operator T const &() const;
  7. template<typename T> T any_cast() const;
  8. template<typename Arg1> nil operator()(Arg1 const &);
  9. template<typename Arg1, typename Arg2> 
      nil operator()(Arg1 const &, Arg2 const &);
  10. template<typename Arg1, typename Arg2, typename Arg3> 
      nil operator()(Arg1 const &, Arg2 const &, Arg3 const &);
  11. template<typename NP> 
      named_parameter_combine< NP, Derived > operator,(NP const & np) const;

named_parameter_combine public static functions

  1. static nil & inst();

PrevUpHomeNext