rivet is hosted by Hepforge, IPPP Durham
has_begin_end< T > Struct Template Reference

#include <PrettyPrint.hh>

List of all members.

Static Public Attributes

static bool const beg_value = sizeof(f<T>(nullptr)) == sizeof(yes)
static bool const end_value = sizeof(g<T>(nullptr)) == sizeof(yes)

Static Private Member Functions

template<typename C >
static yes & f (typename std::enable_if< std::is_same< decltype(static_cast< typename C::const_iterator(C::*)() const >(&C::begin)), typename C::const_iterator(C::*)() const >::value >::type *)
template<typename C >
static no & f (...)
template<typename C >
static yes & g (typename std::enable_if< std::is_same< decltype(static_cast< typename C::const_iterator(C::*)() const >(&C::end)), typename C::const_iterator(C::*)() const >::value, void >::type *)
template<typename C >
static no & g (...)

Detailed Description

template<typename T>
struct Rivet::pretty_print::detail::has_begin_end< T >

Definition at line 53 of file PrettyPrint.hh.


Member Function Documentation

static yes& f ( typename std::enable_if< std::is_same< decltype(static_cast< typename C::const_iterator(C::*)() const >(&C::begin)), typename C::const_iterator(C::*)() const >::value >::type *  ) [static, private]
static no& f (   ...) [static, private]
static yes& g ( typename std::enable_if< std::is_same< decltype(static_cast< typename C::const_iterator(C::*)() const >(&C::end)), typename C::const_iterator(C::*)() const >::value, void >::type *  ) [static, private]
static no& g (   ...) [static, private]

Member Data Documentation

bool const beg_value = sizeof(f<T>(nullptr)) == sizeof(yes) [static]

Definition at line 71 of file PrettyPrint.hh.

bool const end_value = sizeof(g<T>(nullptr)) == sizeof(yes) [static]

Definition at line 72 of file PrettyPrint.hh.


The documentation for this struct was generated from the following file: