The Gaudi Framework  master (37c0b60a)
Gaudi::Functional::details::details2 Namespace Reference

Classes

struct  get_from_handle
 
struct  is_gaudi_range
 
struct  is_gaudi_range< Gaudi::NamedRange_< T, IT > >
 
struct  is_gaudi_range< Gaudi::Range_< T, IT > >
 
struct  is_gaudi_range< std::optional< Gaudi::NamedRange_< T, IT > > >
 

Typedefs

template<typename T >
using is_optional_ = decltype(std::declval< T >().has_value(), std::declval< T >().value())
 
template<typename T >
using value_type_of_t = typename T::value_type
 

Functions

template<typename Container , typename Value >
void push_back (Container &c, const Value &v, std::true_type)
 
template<typename Container , typename Value >
void push_back (Container &c, const Value &v, std::false_type)
 
template<typename T >
T * deref_if (T *const t, std::false_type)
 
template<typename T >
T & deref_if (T *const t, std::true_type)
 

Typedef Documentation

◆ is_optional_

template<typename T >
using Gaudi::Functional::details::details2::is_optional_ = typedef decltype( std::declval<T>().has_value(), std::declval<T>().value() )

Definition at line 125 of file details.h.

◆ value_type_of_t

template<typename T >
using Gaudi::Functional::details::details2::value_type_of_t = typedef typename T::value_type

Definition at line 128 of file details.h.

Function Documentation

◆ deref_if() [1/2]

template<typename T >
T* Gaudi::Functional::details::details2::deref_if ( T *const  t,
std::false_type   
)

Definition at line 286 of file details.h.

286  {
287  return t;
288  }

◆ deref_if() [2/2]

template<typename T >
T& Gaudi::Functional::details::details2::deref_if ( T *const  t,
std::true_type   
)

Definition at line 290 of file details.h.

290  {
291  return *t;
292  }

◆ push_back() [1/2]

template<typename Container , typename Value >
void Gaudi::Functional::details::details2::push_back ( Container &  c,
const Value &  v,
std::false_type   
)

Definition at line 256 of file details.h.

256  {
257  c.push_back( &v );
258  }

◆ push_back() [2/2]

template<typename Container , typename Value >
void Gaudi::Functional::details::details2::push_back ( Container &  c,
const Value &  v,
std::true_type   
)

Definition at line 252 of file details.h.

252  {
253  c.push_back( v );
254  }
gaudirun.c
c
Definition: gaudirun.py:525
bug_34121.t
t
Definition: bug_34121.py:31
Properties.v
v
Definition: Properties.py:122