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 expression<expr_kind::terminal, hana::tuple< T >>

boost::yap::expression<expr_kind::terminal, hana::tuple< T >>

Synopsis

// In header: <boost/yap/expression.hpp>

template<typename T> 
struct expression<expr_kind::terminal, hana::tuple< T >> {
  // types
  typedef hana::tuple< T > tuple_type;

  // construct/copy/destruct
  expression();
  expression(T &&);
  expression(hana::tuple< T > const &);
  expression(hana::tuple< T > &&);

  // public member functions
  constexpr decltype(auto) value();

  // public data members
  static const expr_kind kind;
  tuple_type elements;
};

Description

Terminal expression specialization of the reference expression template.

[Note] Note

Due to a limitation of Doxygen, the value() member and each of the operator overloads listed here is a stand-in for three member functions. For each function f, the listing here is:

return_type f (); 

However, there are actually three functions:

return_type f () const &;
return_type f () &;
return_type f () &&;

expression public construct/copy/destruct

  1. expression();

    Default constructor. Does nothing.

  2. expression(T && t);

    Forwards t into elements.

  3. expression(hana::tuple< T > const & rhs);

    Copies rhs into the only data mamber, elements.

  4. expression(hana::tuple< T > && rhs);

    Moves rhs into the only data mamber, elements.

expression public member functions

  1. constexpr decltype(auto) value();

    A convenience member function that dispatches to the free function value().


PrevUpHomeNext