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

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; 

  // public member functions
  typed_keyword();
  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 member functions

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

PrevUpHome