Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
Binary Prefixes

Defines the binary prefix manipulators from kibi to exbi. More...

Collaboration diagram for Binary Prefixes:
template<ConversionFactorType Cf>
using units::kibi = typename detail::prefix<std::ratio<1024>, Cf>::type
 < Represents the type of class Cf with the metric 'exa' prefix appended.
template<ConversionFactorType Cf>
using units::mebi = typename detail::prefix<std::ratio<1048576>, Cf>::type
 < Represents the type of class Cf with the binary 'kibi' prefix appended.
template<ConversionFactorType Cf>
using units::gibi = typename detail::prefix<std::ratio<1073741824>, Cf>::type
 < Represents the type of class Cf with the binary 'mibi' prefix appended.
template<ConversionFactorType Cf>
using units::tebi = typename detail::prefix<std::ratio<1099511627776>, Cf>::type
 < Represents the type of class Cf with the binary 'gibi' prefix appended.
template<ConversionFactorType Cf>
using units::pebi = typename detail::prefix<std::ratio<1125899906842624>, Cf>::type
 < Represents the type of class Cf with the binary 'tebi' prefix appended.
template<ConversionFactorType Cf>
using units::exbi = typename detail::prefix<std::ratio<1152921504606846976>, Cf>::type
 < Represents the type of class Cf with the binary 'pebi' prefix appended.

Detailed Description

Defines the binary prefix manipulators from kibi to exbi.

Typedef Documentation

◆ exbi

template<ConversionFactorType Cf>
using units::exbi = typename detail::prefix<std::ratio<1152921504606846976>, Cf>::type

< Represents the type of class Cf with the binary 'pebi' prefix appended.

E.g. pebi<bytes> represents bytes*2^50

Template Parameters
Cfunit type to apply the prefix to.

◆ gibi

template<ConversionFactorType Cf>
using units::gibi = typename detail::prefix<std::ratio<1073741824>, Cf>::type

< Represents the type of class Cf with the binary 'mibi' prefix appended.

E.g. mebi<bytes> represents bytes*2^20

Template Parameters
Cfunit type to apply the prefix to.

◆ kibi

template<ConversionFactorType Cf>
using units::kibi = typename detail::prefix<std::ratio<1024>, Cf>::type

< Represents the type of class Cf with the metric 'exa' prefix appended.

E.g. exa<meters> represents meters*10^18

Template Parameters
Cfunit type to apply the prefix to.

◆ mebi

template<ConversionFactorType Cf>
using units::mebi = typename detail::prefix<std::ratio<1048576>, Cf>::type

< Represents the type of class Cf with the binary 'kibi' prefix appended.

E.g. kibi<bytes> represents bytes*2^10

Template Parameters
Cfunit type to apply the prefix to.

◆ pebi

template<ConversionFactorType Cf>
using units::pebi = typename detail::prefix<std::ratio<1125899906842624>, Cf>::type

< Represents the type of class Cf with the binary 'tebi' prefix appended.

E.g. tebi<bytes> represents bytes*2^40

Template Parameters
Cfunit type to apply the prefix to.

◆ tebi

template<ConversionFactorType Cf>
using units::tebi = typename detail::prefix<std::ratio<1099511627776>, Cf>::type

< Represents the type of class Cf with the binary 'gibi' prefix appended.

E.g. gibi<bytes> represents bytes*2^30

Template Parameters
Cfunit type to apply the prefix to.