Public Types | Public Member Functions | List of all members
lexy::_collection< Container > Struct Template Reference

#include <container.hpp>

Public Types

using return_type = Container
 

Public Member Functions

constexpr auto allocator () const
 
template<typename AllocFn >
constexpr auto allocator (AllocFn alloc_fn) const
 
template<typename... Args>
constexpr auto operator() (Args &&... args) const -> LEXY_DECAY_DECLTYPE((LEXY_DECLVAL(Container &).insert(LEXY_FWD(args)),...), LEXY_DECLVAL(Container))
 
template<typename C = Container, typename... Args>
constexpr auto operator() (const typename C::allocator_type &allocator, Args &&... args) const -> decltype((LEXY_DECLVAL(C &).insert(LEXY_FWD(args)),...), C(allocator))
 
constexpr Container operator() (Container &&container) const
 
constexpr Container operator() (nullopt &&) const
 
constexpr auto sink () const
 
template<typename C = Container>
constexpr auto sink (const typename C::allocator_type &allocator) const
 

Detailed Description

template<typename Container>
struct lexy::_collection< Container >

Definition at line 240 of file container.hpp.

Member Typedef Documentation

◆ return_type

template<typename Container >
using lexy::_collection< Container >::return_type = Container

Definition at line 242 of file container.hpp.

Member Function Documentation

◆ allocator() [1/2]

template<typename Container >
constexpr auto lexy::_collection< Container >::allocator ( ) const
inlineconstexpr

Definition at line 291 of file container.hpp.

◆ allocator() [2/2]

template<typename Container >
template<typename AllocFn >
constexpr auto lexy::_collection< Container >::allocator ( AllocFn  alloc_fn) const
inlineconstexpr

Definition at line 287 of file container.hpp.

◆ operator()() [1/4]

template<typename Container >
template<typename... Args>
constexpr auto lexy::_collection< Container >::operator() ( Args &&...  args) const -> LEXY_DECAY_DECLTYPE((LEXY_DECLVAL(Container&).insert(LEXY_FWD(args)), ...), LEXY_DECLVAL(Container))
inlineconstexpr

Definition at line 254 of file container.hpp.

◆ operator()() [2/4]

template<typename Container >
template<typename C = Container, typename... Args>
constexpr auto lexy::_collection< Container >::operator() ( const typename C::allocator_type &  allocator,
Args &&...  args 
) const -> decltype((LEXY_DECLVAL(C&).insert(LEXY_FWD(args)), ...), C(allocator))
inlineconstexpr

Definition at line 266 of file container.hpp.

◆ operator()() [3/4]

template<typename Container >
constexpr Container lexy::_collection< Container >::operator() ( Container &&  container) const
inlineconstexpr

Definition at line 244 of file container.hpp.

◆ operator()() [4/4]

template<typename Container >
constexpr Container lexy::_collection< Container >::operator() ( nullopt &&  ) const
inlineconstexpr

Definition at line 248 of file container.hpp.

◆ sink() [1/2]

template<typename Container >
constexpr auto lexy::_collection< Container >::sink ( ) const
inlineconstexpr

Definition at line 276 of file container.hpp.

◆ sink() [2/2]

template<typename Container >
template<typename C = Container>
constexpr auto lexy::_collection< Container >::sink ( const typename C::allocator_type &  allocator) const
inlineconstexpr

Definition at line 281 of file container.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09