utils.hpp File Reference

Go to the source code of this file.

Classes

struct  identity< T >
 Identity metafunction. More...
 
struct  bottom
 This is a type that pretends to be convertible to anything. More...
 
struct  from_void
 Type to enable making a type convertible from void. More...
 
struct  noop_t
 Does nothing. More...
 

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::meta
 Metaprogramming tools, including some Booost.MPL adaptors and concept checking facilities.
 

Macros

#define ABL_DECLTYPE_RETURN(body_expr)   decltype(body_expr) { return (body_expr); }
 Utility for defining generic functions with a deduced return type, that are composed of a single expression. More...
 

Variables

constexpr struct atria::meta::noop_t noop
 
constexpr int can_be_void = 42
 Use to allow a void expression by chaining it in a comma operator thing. More...
 

Macro Definition Documentation

#define ABL_DECLTYPE_RETURN (   body_expr)    decltype(body_expr) { return (body_expr); }

Utility for defining generic functions with a deduced return type, that are composed of a single expression.

Definition at line 109 of file utils.hpp.

Fork me on GitHub