[#index_util-LookUpOne] = xref:index_util.adoc[index_util]::LookUpOne :relfileprefix: ../ :mrdocs: Look up a single index entry for a block, trying the height index then the hash index. == Synopsis Declared in `<index/db_key.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename DBVal> static bool LookUpOne( xref:CDBWrapper.adoc[CDBWrapper] const& db, xref:interfaces/BlockRef.adoc[interfaces::BlockRef] const& block, DBVal& result); ---- == Return Value True if an entry for the block was found. == Template Parameters [cols="1,4"] |=== | Name| Description | *DBVal* | Type of the value stored for the entry. |=== == Parameters [cols="1,4"] |=== | Name| Description | *db* | Database to read from. | *block* | Reference identifying the block to look up. | *result* | Set to the value that was found. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#