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.
PrevUpHomeNext

Reference

Headers

Headers

namespace boost {
  namespace yap {
    template<typename Expr> struct expression_function;
    template<typename Expr> constexpr decltype(auto) deref(Expr &&);
    template<typename T> constexpr decltype(auto) value(T &&);
    template<typename Expr, typename I> 
      constexpr decltype(auto) get(Expr &&, I const &);
    template<long long I, typename Expr> 
      constexpr decltype(auto) get_c(Expr &&);
    template<typename Expr> constexpr decltype(auto) left(Expr &&);
    template<typename Expr> constexpr decltype(auto) right(Expr &&);
    template<typename Expr> constexpr decltype(auto) cond(Expr &&);
    template<typename Expr> constexpr decltype(auto) then(Expr &&);
    template<typename Expr> constexpr decltype(auto) else_(Expr &&);
    template<typename Expr> constexpr decltype(auto) callable(Expr &&);
    template<long long I, typename Expr> 
      constexpr decltype(auto) argument(Expr &&, hana::llong< I >);
    template<template< expr_kind, class > class ExprTemplate, expr_kind Kind, 
             typename... T> 
      constexpr auto make_expression(T &&...);
    template<template< expr_kind, class > class ExprTemplate, typename T> 
      constexpr auto make_terminal(T &&);
    template<template< expr_kind, class > class ExprTemplate, typename T> 
      constexpr decltype(auto) as_expr(T &&);
    template<typename Expr> constexpr auto make_expression_function(Expr &&);
    template<typename... T> constexpr auto replacements(T &&...);
    template<typename Expr, typename... T> 
      constexpr decltype(auto) replace_placeholders(Expr &&, T &&...);
    template<typename... T> constexpr auto evaluation(T &&...);
    template<typename Expr, typename... T> 
      constexpr decltype(auto) evaluate(Expr &&, T &&...);
    template<typename Expr, typename Transform, typename... Transforms> 
      constexpr decltype(auto) 
      transform(Expr &&, Transform &&, Transforms &&...);
    template<typename Expr, typename Transform, typename... Transforms> 
      constexpr decltype(auto) 
      transform_strict(Expr &&, Transform &&, Transforms &&...);
  }
}
namespace boost {
  namespace yap {
    template<expr_kind Kind> struct expr_tag;
    template<typename Expr> struct is_expr;
    template<expr_kind Kind, typename Tuple> struct minimal_expr;
    template<long long I> struct placeholder;

    enum expr_kind;
    typedef expr_template< expr_kind::terminal, hana::tuple< T > > terminal;
    typedef expr_template< expr_kind::expr_ref, hana::tuple< std::remove_reference_t< T > * > > expression_ref;
    namespace literals {
      template<char... c> constexpr auto operator""_p();
    }
  }
}
namespace boost {
  namespace yap {
    template<expr_kind Kind, typename Tuple> struct expression;

    template<typename T> 
      struct expression<expr_kind::terminal, hana::tuple< T >>;
    template<typename Expr> constexpr auto operator+(Expr &&);
    template<typename Expr> constexpr auto operator-(Expr &&);
    template<typename Expr> constexpr auto operator*(Expr &&);
    template<typename Expr> constexpr auto operator~(Expr &&);
    template<typename Expr> constexpr auto operator&(Expr &&);
    template<typename Expr> constexpr auto operator!(Expr &&);
    template<typename Expr> constexpr auto operator++(Expr &&);
    template<typename Expr> constexpr auto operator--(Expr &&);
    template<typename Expr> constexpr auto operator++(Expr &&, int);
    template<typename Expr> constexpr auto operator--(Expr &&, int);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator<<(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator>>(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator*(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator/(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator%(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator+(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator-(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator<(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator>(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator<=(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator>=(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator==(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator!=(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator||(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator&&(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator&(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator|(LExpr &&, RExpr &&);
    template<typename LExpr, typename RExpr> 
      constexpr auto operator^(LExpr &&, RExpr &&);
    template<typename Expr1, typename Expr2, typename Expr3> 
      constexpr auto if_else(Expr1 &&, Expr2 &&, Expr3 &&);
    template<expr_kind Kind, typename... T> 
      constexpr auto make_expression(T &&...);
    template<typename T> constexpr auto make_terminal(T &&);
    template<typename T> constexpr decltype(auto) as_expr(T &&);
  }
}
namespace boost {
  namespace yap {
    constexpr char const * op_string(expr_kind);
    template<typename Expr> std::ostream & print(std::ostream &, Expr const &);
  }
}

BOOST_YAP_USER_UNARY_OPERATOR(op_name, expr_template, result_expr_template)
BOOST_YAP_USER_BINARY_OPERATOR(op_name, expr_template, result_expr_template)
BOOST_YAP_USER_ASSIGN_OPERATOR(this_type, expr_template)
BOOST_YAP_USER_SUBSCRIPT_OPERATOR(expr_template)
BOOST_YAP_USER_CALL_OPERATOR(expr_template)
BOOST_YAP_USER_CALL_OPERATOR_N(expr_template, n)
BOOST_YAP_USER_EXPR_IF_ELSE(expr_template)
BOOST_YAP_USER_UDT_ANY_IF_ELSE(expr_template, udt_trait)
BOOST_YAP_USER_UDT_UNARY_OPERATOR(op_name, expr_template, udt_trait)
BOOST_YAP_USER_UDT_UDT_BINARY_OPERATOR(op_name, expr_template, t_udt_trait, u_udt_trait)
BOOST_YAP_USER_UDT_ANY_BINARY_OPERATOR(op_name, expr_template, udt_trait)
BOOST_YAP_USER_LITERAL_PLACEHOLDER_OPERATOR(expr_template)

PrevUpHomeNext