[#BloombergLP-balber-BerDecoderOptions-accessAttribute-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions]::accessAttribute :relfileprefix: ../../../ :mrdocs: Invoke the specified `accessor` on the attribute indicated by name. == Synopsis Declared in `<balber_berdecoderoptions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ACCESSOR> int accessAttribute( ACCESSOR& accessor, char const* name, int nameLength) const; ---- == Description Invoke the specified `accessor` on the (non‐modifiable) attribute of this object indicated by the specified `name` of the specified `nameLength`, supplying `accessor` with the corresponding attribute information structure. Return the value returned from the invocation of `accessor` if `name` identifies an attribute of this class, and ‐1 otherwise. == Return Value value from `accessor`, or ‐1 if `name` is not found == Parameters [cols="1,4"] |=== | Name| Description | *accessor* | functor invoked on the selected attribute | *name* | attribute name to access | *nameLength* | length of `name` in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#