kblib 0.2.3
General utilities library for modern C++
|
Classes | |
struct | is_si_ratio |
struct | is_si_ratio< std::atto > |
struct | is_si_ratio< std::centi > |
struct | is_si_ratio< std::deca > |
struct | is_si_ratio< std::deci > |
struct | is_si_ratio< std::exa > |
struct | is_si_ratio< std::femto > |
struct | is_si_ratio< std::giga > |
struct | is_si_ratio< std::hecto > |
struct | is_si_ratio< std::kilo > |
struct | is_si_ratio< std::mega > |
struct | is_si_ratio< std::micro > |
struct | is_si_ratio< std::milli > |
struct | is_si_ratio< std::nano > |
struct | is_si_ratio< std::peta > |
struct | is_si_ratio< std::pico > |
struct | is_si_ratio< std::ratio< 1 > > |
struct | is_si_ratio< std::tera > |
struct | nearest_ratio |
struct | prefix |
struct | unit_conversion |
Typedefs | |
template<std::intmax_t Num, std::intmax_t Den> | |
using | nearest_ratio_t = typename nearest_ratio< Num, Den >::type |
Functions | |
constexpr auto | unit_of (std::chrono::nanoseconds) noexcept -> auto |
constexpr auto | unit_of (std::chrono::microseconds) noexcept -> auto |
constexpr auto | unit_of (std::chrono::milliseconds) noexcept -> auto |
constexpr auto | unit_of (std::chrono::seconds) noexcept -> auto |
constexpr auto | unit_of (std::chrono::minutes) noexcept -> auto |
constexpr auto | unit_of (std::chrono::hours) noexcept -> auto |
constexpr auto | name_of (std::atto) -> prefix |
constexpr auto | name_of (std::femto) -> prefix |
constexpr auto | name_of (std::pico) -> prefix |
constexpr auto | name_of (std::nano) -> prefix |
constexpr auto | name_of (std::micro) -> prefix |
constexpr auto | name_of (std::milli) -> prefix |
constexpr auto | name_of (std::centi) -> prefix |
constexpr auto | name_of (std::deci) -> prefix |
constexpr auto | name_of (std::ratio< 1, 1 >) -> prefix |
constexpr auto | name_of (std::deca) -> prefix |
constexpr auto | name_of (std::hecto) -> prefix |
constexpr auto | name_of (std::kilo) -> prefix |
constexpr auto | name_of (std::mega) -> prefix |
constexpr auto | name_of (std::giga) -> prefix |
constexpr auto | name_of (std::tera) -> prefix |
constexpr auto | name_of (std::peta) -> prefix |
constexpr auto | name_of (std::exa) -> prefix |
constexpr auto | largest_power_1000 (std::intmax_t in) -> int |
constexpr auto | largest_power_1000_p (double in) -> int |
constexpr auto | largest_power_1000 (double in) -> int |
constexpr auto | pow1000 (int p) -> double |
template<std::intmax_t Num, std::intmax_t Den> | |
auto | ratio_to_SI () noexcept -> unit_conversion< std::intmax_t > |
using kblib::detail_units::nearest_ratio_t = typedef typename nearest_ratio<Num, Den>::type |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
noexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |