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 a snapshot of the develop branch, built from commit 9c09516121.
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;

  // public member functions
  expression();
  expression(T &&);
  expression(hana::tuple< T > const &);
  expression(hana::tuple< T > &&);
  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 member functions

  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.

  5. constexpr decltype(auto) value();

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


PrevUpHomeNext