CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::CASM_TMP Namespace Reference

Classes

struct  BracketAccess
 Helper Functor for Counter container access using operator[]. More...
 
struct  FloatingPointLessThan
 
struct  IfIntegralTol
 
struct  IfIntegralTol< tol_type, false >
 
struct  IfIntegralTol< tol_type, true >
 
struct  IntegralLessThan
 
struct  is_iterator
 Base type inherits from std::false_type if T is not iterator. More...
 
struct  is_iterator< T, void_t< decltype(++std::declval< T & >()), decltype(*std::declval< T & >()), decltype(std::declval< T & >()==std::declval< T & >()) > >
 Specialized case inherits from std::true_type if T is an iterator. More...
 
struct  make_void
 Alias for void, to help SFINAE work. More...
 
struct  ParenthesesAccess
 Helper Functor for Counter container access using operator() More...
 
struct  traits
 
struct  traits< Counter< _Container, _value_type, _size_type, _Access, _Compare > >
 
struct  traits< EnumEquivalents< ObjectType, SymOpIterator, SymOpType, SymOpCompare > >
 
struct  traits< IsoCounter< _Container, _value_type, _size_type, _Access, _Compare > >
 

Typedefs

template<typename... Ts>
using void_t = typename make_void< Ts...>::type
 Alias for void, to help SFINAE work. More...
 
template<typename T >
using enable_if_iterator = std::enable_if< is_iterator< T >::type::value, void >
 Template alias to enable a template function via SFINAE for any iterator. More...
 
template<typename T , typename V >
using enable_if_iterator_of = std::enable_if< is_iterator< T >::type::value &&std::is_same< typename std::iterator_traits< T >::value_type, V >::type::value, void >
 Template alias to enable a template function via SFINAE for an iterator with value_type V. More...
 
template<typename T >
using TypedTol = IfIntegralTol< T, std::is_integral< T >::value >
 
template<bool IsConst, typename T >
using ConstSwitch = typename std::conditional< IsConst, const T, T >::type
 
template<typename T >
using MuchLessThan = typename std::conditional< boost::is_integral< T >::value, IntegralLessThan< T >, FloatingPointLessThan< T > >::type
 

Functions

template<typename... Args>
void ignore_returnvalues (Args &&...)
 Enables calling a function on each argument in a parameter pack. More...
 

Typedef Documentation

template<bool IsConst, typename T >
using CASM::CASM_TMP::ConstSwitch = typedef typename std::conditional<IsConst, const T, T>::type

Definition at line 93 of file CASM_TMP.hh.

template<typename T >
using CASM::CASM_TMP::enable_if_iterator = typedef std::enable_if<is_iterator<T>::type::value, void>

Template alias to enable a template function via SFINAE for any iterator.

  • example function argument: 'typename CASM_TMP::enable_if_iterator<IteratorType>::type* = nullptr'

Definition at line 53 of file CASM_TMP.hh.

template<typename T , typename V >
using CASM::CASM_TMP::enable_if_iterator_of = typedef std::enable_if < is_iterator<T>::type::value && std::is_same<typename std::iterator_traits<T>::value_type, V>::type::value, void >

Template alias to enable a template function via SFINAE for an iterator with value_type V.

  • example function argument: 'typename CASM_TMP::enable_if_iterator_of<IteratorType, ValueType>::type* = nullptr'

Definition at line 61 of file CASM_TMP.hh.

template<typename T >
using CASM::CASM_TMP::MuchLessThan = typedef typename std::conditional<boost::is_integral<T>::value, IntegralLessThan<T>, FloatingPointLessThan<T> >::type

Definition at line 117 of file CASM_TMP.hh.

template<typename T >
using CASM::CASM_TMP::TypedTol = typedef IfIntegralTol<T, std::is_integral<T>::value >

Definition at line 89 of file CASM_TMP.hh.

template<typename... Ts>
using CASM::CASM_TMP::void_t = typedef typename make_void<Ts...>::type

Alias for void, to help SFINAE work.

Definition at line 31 of file CASM_TMP.hh.

Function Documentation

template<typename... Args>
void CASM::CASM_TMP::ignore_returnvalues ( Args &&  ...)

Enables calling a function on each argument in a parameter pack.

Definition at line 19 of file CASM_TMP.hh.