The Gaudi Framework  master (594c33fa)
Gaudi::Functional::details::insert_t Struct Reference

#include </builds/gaudi/Gaudi/GaudiFunctional/include/Gaudi/Functional/details.h>

Public Types

template<typename Container >
using c_remove_ptr_t = std::remove_pointer_t< typename Container::value_type >
 

Public Member Functions

template<typename Container , typename Value >
auto operator() (Container &c, Value &&v) const -> decltype(c.push_back(v))
 
template<typename Container , typename Value >
auto operator() (Container &c, Value &&v) const -> decltype(c.insert(v))
 
template<typename Container , typename Value , typename = std::enable_if_t<std::is_pointer_v<typename Container::value_type>>, typename = std::enable_if_t<std::is_convertible_v<Value, c_remove_ptr_t<Container>>>>
auto operator() (Container &c, Value &&v) const
 

Detailed Description

Definition at line 189 of file details.h.

Member Typedef Documentation

◆ c_remove_ptr_t

template<typename Container >
using Gaudi::Functional::details::insert_t::c_remove_ptr_t = std::remove_pointer_t<typename Container::value_type>

Definition at line 192 of file details.h.

Member Function Documentation

◆ operator()() [1/3]

template<typename Container , typename Value , typename = std::enable_if_t<std::is_pointer_v<typename Container::value_type>>, typename = std::enable_if_t<std::is_convertible_v<Value, c_remove_ptr_t<Container>>>>
auto Gaudi::Functional::details::insert_t::operator() ( Container &  c,
Value &&  v 
) const
inline

Definition at line 208 of file details.h.

208  {
209  return operator()( c, new c_remove_ptr_t<Container>{ std::forward<Value>( v ) } );
210  }

◆ operator()() [2/3]

template<typename Container , typename Value >
auto Gaudi::Functional::details::insert_t::operator() ( Container &  c,
Value &&  v 
) const -> decltype( c.insert( v ) )
inline

Definition at line 200 of file details.h.

200  {
201  return c.insert( std::forward<Value>( v ) );
202  }

◆ operator()() [3/3]

template<typename Container , typename Value >
auto Gaudi::Functional::details::insert_t::operator() ( Container &  c,
Value &&  v 
) const -> decltype( c.push_back( v ) )
inline

Definition at line 195 of file details.h.

195  {
196  return c.push_back( std::forward<Value>( v ) );
197  }

The documentation for this struct was generated from the following file:
Gaudi::Functional::details::insert_t::operator()
auto operator()(Container &c, Value &&v) const -> decltype(c.push_back(v))
Definition: details.h:195
gaudirun.c
c
Definition: gaudirun.py:525
Properties.v
v
Definition: Properties.py:122