PMDK C++ bindings  1.8.2
This is the C++ bindings documentation for PMDK's libpmemobj.
Classes | Namespaces | Functions
common.hpp File Reference

Commonly used functionality. More...

#include <libpmemobj++/pexceptions.hpp>
#include <libpmemobj/tx_base.h>
#include <string>
#include <typeinfo>

Go to the source code of this file.

Classes

class  pmem::obj::persistent_ptr< T >
 Persistent pointer class. More...
 

Namespaces

 pmem
 A persistent version of concurrent hash map implementation Ref: https://arxiv.org/abs/1509.02235.
 

Functions

uint64_t pmem::detail::next_pow_2 (uint64_t v)
 Round up to the next lowest power of 2. More...
 
uint64_t pmem::detail::next_pow_2 (uint32_t v)
 Round up to the next lowest power of 2. More...
 

Detailed Description

Commonly used functionality.

Function Documentation

◆ next_pow_2() [1/2]

uint64_t pmem::detail::next_pow_2 ( uint64_t  v)
inline

Round up to the next lowest power of 2.

Overload for uint64_t argument.

◆ next_pow_2() [2/2]

uint64_t pmem::detail::next_pow_2 ( uint32_t  v)
inline

Round up to the next lowest power of 2.

Overload for uint32_t argument.