PrevUpHomeNext

Struct template optional_ref

boost::text::optional_ref

Synopsis

// In header: <boost/text/trie.hpp>

template<typename T, bool Const = std::is_const<T>::value> 
struct optional_ref {
  // construct/copy/destruct
  optional_ref();
  optional_ref(T &);
  template<typename U> auto operator=(U &&);

  // public member functions
  explicit operator bool() const;
  explicit operator bool();
  explicit operator bool();
  T const & operator*() const;
  T const * operator->() const;
  operator T const &() const;
  operator T const &() const;
  T & operator*();
  T * operator->();
  operator T&();
  operator T&();
};

Description

An optional reference. Its optionality is testable, via the operator bool() members, and it is implicitly convertible to the underlying value type.

optional_ref public construct/copy/destruct

  1. optional_ref();
  2. optional_ref(T & t);
  3. template<typename U> auto operator=(U && u);

optional_ref public member functions

  1. explicit operator bool() const;
  2. explicit operator bool();
  3. explicit operator bool();
  4. T const & operator*() const;
  5. T const * operator->() const;
  6. operator T const &() const;
  7. operator T const &() const;
  8. T & operator*();
  9. T * operator->();
  10. operator T&();
  11. operator T&();

PrevUpHomeNext