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

Struct template typed_keyword<bool, unique_id, required>

boost::nfp::typed_keyword<bool, unique_id, required>

Synopsis

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

template<typename unique_id, bool required> 
struct typed_keyword<bool, unique_id, required> : public boost::nfp::keyword< unique_id, required >,
                       public boost::nfp::named_parameter< bool, unique_id, bool >
{
  // types
  typedef unique_id id;       
  typedef bool      data_type;
  typedef bool      ref_type; 

  // construct/copy/destruct
  typed_keyword();

  // public member functions
  named_parameter< bool, unique_id, bool > operator!() const;
  ref_type operator[](keyword< unique_id, true >) const;
  ref_type operator[](keyword< unique_id, false >) const;
  nil operator[](keyword< UnknownId, false >) const;
  bool has(keyword< unique_id, false >) const;
  bool has(keyword< UnknownId, false >) const;
  void erase(keyword< unique_id, false >) const;
  void erase(keyword< UnknownId, false >) const;
  void apply_to(Visitor &) const;
  template<typename NP> 
    named_parameter_combine< NP, Derived > operator,(NP const &) const;
};

Description

typed_keyword public construct/copy/destruct

  1. typed_keyword();

typed_keyword public member functions

  1. named_parameter< bool, unique_id, bool > operator!() const;
  2. ref_type operator[](keyword< unique_id, true >) const;
  3. ref_type operator[](keyword< unique_id, false >) const;
  4. nil operator[](keyword< UnknownId, false >) const;
  5. bool has(keyword< unique_id, false >) const;
  6. bool has(keyword< UnknownId, false >) const;
  7. void erase(keyword< unique_id, false >) const;
  8. void erase(keyword< UnknownId, false >) const;
  9. void apply_to(Visitor & V) const;
  10. template<typename NP> 
      named_parameter_combine< NP, Derived > operator,(NP const & np) const;

PrevUpHome