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

Type&hyphen;erased non&hyphen;const reference to an object in the `bdlat` simple&hyphen;type category&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class SimpleTypeRef;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/SimpleTypeRef/2constructor-035.adoc[`SimpleTypeRef`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlar/SimpleTypeRef/access-0a5.adoc[`access`] 
| `access` overloads
| xref:BloombergLP/bdlar/SimpleTypeRef/accessWithCategory.adoc[`accessWithCategory`] 
| Invoke the specified `accessor` on the value held by this object supplying `accessor` with an object of `bdlat&lowbar;TypeCategory&colon;&colon;Simple` type for any type except `bsl&colon;&colon;vector&lt;char&gt;`&period; The latter is supplied with an object of `bdlat&lowbar;TypeCategory&colon;&colon;Array` type&period; The supplied `accessor` must be an object callable with a value of any simple type as if it had the following signature&colon; &grave; int accessor(const VALUE&amp; value, bdlat&lowbar;TypeCategory&colon;&colon;Simple)&semi; &sol;&sol; and int accessor(const bsl&colon;&colon;vector&lt;char&gt;&amp; value, bdlat&lowbar;TypeCategory&colon;&colon;Array)&semi; &grave; Return the value from the invocation of `accessor`&period;
| xref:BloombergLP/bdlar/SimpleTypeRef/manipulate-040.adoc[`manipulate`] 
| `manipulate` overloads
| xref:BloombergLP/bdlar/SimpleTypeRef/manipulateWithCategory.adoc[`manipulateWithCategory`] 
| Invoke the specified `manipulator` on the value held by this object supplying `manipulator` with an object of `bdlat&lowbar;TypeCategory&colon;&colon;Simple` type for any type except `bsl&colon;&colon;vector&lt;char&gt;`&period; The latter is supplied with an object of `bdlat&lowbar;TypeCategory&colon;&colon;Array` type&period; The supplied `manipulator` must be an object callable with a value of any simple type as if it had the following signature&colon; &grave; int manipulator(VALUE &ast;value, bdlat&lowbar;TypeCategory&colon;&colon;Simple)&semi; &sol;&sol; and int manipulator(bsl&colon;&colon;vector&lt;char&gt; &ast;value, bdlat&lowbar;TypeCategory&colon;&colon;Array)&semi; &grave; Return the value from the invocation of `manipulator`&period;
| xref:BloombergLP/bdlar/SimpleTypeRef/objectAddress.adoc[`objectAddress`] 
| Return a pointer to the wrapped object&period;
| xref:BloombergLP/bdlar/SimpleTypeRef/reset.adoc[`reset`] 
| Reset the referred object to the default value&period;
| xref:BloombergLP/bdlar/SimpleTypeRef/typeId.adoc[`typeId`] 
| Return the type ID corresponding to the simple type held by this object&period;
| xref:BloombergLP/bdlar/SimpleTypeRef/vtable.adoc[`vtable`] 
| Return a pointer to the vtable&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/bdlat_valueTypeReset-089.adoc[`bdlat&lowbar;valueTypeReset`]
| Reset the specified `ref` to the default value&period;
|===


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