NuDB Logo

PrevUpHomeNext

basic_store::key_size

Return the key size associated with the database.

Synopsis
std::size_t
key_size() const;
Description

The key size is defined by the application when the database is created in a call to create. The key size cannot be changed on an existing database.

Requirements

The database must be open.

Thread safety

Safe to call concurrently with any function except basic_store::open or basic_store::close.

Return Value

The size of keys in the database.


PrevUpHomeNext