[#BloombergLP-balber-BerEncoderOptions-accessAttribute-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions]::accessAttribute :relfileprefix: ../../../ :mrdocs: Invoke the specified `accessor` on the attribute indicated by the specified `name` of the specified `nameLength`. == Synopsis Declared in `<balber_berencoderoptions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_ACCESSOR> int accessAttribute( t_ACCESSOR& accessor, char const* name, int nameLength) const; ---- == Return Value value returned by `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]#