Empirical
Public Member Functions | List of all members
emp::tools::__impl_attr_base::AttrBase< Attr, Value >::call_or_get_attribute_t Struct Reference

#include <attrs.h>

Public Member Functions

template<class V , class... U>
decltype(auto) constexpr operator() (V &&target, U &&...args) const
 

Detailed Description

template<typename Attr, template< typename > class Value>
struct emp::tools::__impl_attr_base::AttrBase< Attr, Value >::call_or_get_attribute_t

Given an attribute pack, CallOrGetAttribute(pack, args...) will attempt to return Get(pack)(args...). If this fails to compile, because the value of this attribute is not callable in the given pack, then just this attribute will be returned, Get(pack).

Member Function Documentation

template<typename Attr , template< typename > class Value>
template<class V , class... U>
decltype(auto) constexpr emp::tools::__impl_attr_base::AttrBase< Attr, Value >::call_or_get_attribute_t::operator() ( V &&  target,
U &&...  args 
) const
inline

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