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 an old version of boost. Click here for the latest Boost documentation.
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 Rest {
  // 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;
  named_parameter_combine< NP, named_parameter_combine< NP, Rest > > 
  operator,(NP const &) const;
};

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. named_parameter_combine< NP, named_parameter_combine< NP, Rest > > 
    operator,(NP const & np) const;

PrevUpHomeNext