BloombergLP::bdlar::SimpleTypeRef::access

access overloads

Synopses

Declared in <bdlar_simpletyperef.h>

Invoke the specified accessor on the value held by this object.

template<class t_ACCESSOR>
int
access(t_ACCESSOR& accessor) const;
» more...

Invoke the specified accessor on the value held by this object with the specified info.

template<
    class t_ACCESSOR,
    class t_INFO>
int
access(
    t_ACCESSOR& accessor,
    t_INFO const& info) const;
» more...

Return Value

value from the invocation of accessor

Parameters

NameDescription
accessorcallable invoked on the held value
infoadditional information passed to accessor