[#BloombergLP-bdlar-SimpleTypeRef-access-0a5]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/SimpleTypeRef.adoc[SimpleTypeRef]::access
:relfileprefix: ../../../
:mrdocs:

`access` overloads

== Synopses

Declared in `&lt;bdlar&lowbar;simpletyperef&period;h&gt;`

Invoke the specified `accessor` on the value held by this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ACCESSOR&gt;
int
xref:BloombergLP/bdlar/SimpleTypeRef/access-01.adoc[access](t&lowbar;ACCESSOR& accessor) const;
----

[.small]#xref:BloombergLP/bdlar/SimpleTypeRef/access-01.adoc[_» more&period;&period;&period;_]#

Invoke the specified `accessor` on the value held by this object with the specified `info`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;ACCESSOR,
    class t&lowbar;INFO&gt;
int
xref:BloombergLP/bdlar/SimpleTypeRef/access-0aa.adoc[access](
    t&lowbar;ACCESSOR& accessor,
    t&lowbar;INFO const& info) const;
----

[.small]#xref:BloombergLP/bdlar/SimpleTypeRef/access-0aa.adoc[_» more&period;&period;&period;_]#

== Return Value

value from the invocation of `accessor`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *accessor*
| callable invoked on the held value
| *info*
| additional information passed to `accessor`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
