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

Synopsis

Declared in <bdlar_simpletyperef.h>

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

Description

The supplied accessor must be an object callable with a value of any simple type as if it had the following signature: ` int accessor(const VALUE& value); ` Return the value from the invocation of accessor.

Return Value

value from the invocation of accessor

Parameters

Name

Description

accessor

callable invoked on the held value

Created with MrDocs