A library for working with phylogenetic and population genetic data.
v0.32.0
std.hpp File Reference

Detailed Description

Provides some valuable additions to STD.

Definition in file std.hpp.

#include <cstdint>
#include <memory>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  ArrowOperatorProxy< T >
 Proxy class to hold an element accessible via arrow operator. More...
 

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Macros

#define GENESIS_FUNC   __FUNCTION__
 
#define GENESIS_LIKELY
 
#define GENESIS_UNLIKELY
 

Functions

constexpr std::size_t combine_hashes (std::size_t h1, std::size_t h2)
 Combine two hash values. More...
 
constexpr std::size_t combine_hashes_32 (std::size_t h1, std::size_t h2)
 
constexpr std::size_t combine_hashes_64 (std::size_t h1, std::size_t h2)
 
template<typename T >
constexpr std::size_t hash_combine (std::size_t seed, T const &value)
 Combine a seed value (e.g., another hash) with the hash of a given type. More...
 
template<typename T , typename... Args>
std::unique_ptr< T > make_unique (Args &&... args)
 Returns a std::unique_ptr for a given type. More...
 

Macro Definition Documentation

◆ GENESIS_FUNC

#define GENESIS_FUNC   __FUNCTION__

Definition at line 53 of file std.hpp.

◆ GENESIS_LIKELY

#define GENESIS_LIKELY

Definition at line 66 of file std.hpp.

◆ GENESIS_UNLIKELY

#define GENESIS_UNLIKELY

Definition at line 67 of file std.hpp.