[#CDBIterator-GetKey]
= xref:CDBIterator.adoc[CDBIterator]::GetKey
:relfileprefix: ../
:mrdocs:

Reads the key at the current position&period;

== Synopsis

Declared in `&lt;dbwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename K&gt;
bool
GetKey(K& key);
----

== Return Value

True if the key was read successfully, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Set to the deserialized key on success&period;
|===


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