CMS 3D CMS Logo

Functions
cms_units::operators Namespace Reference

Functions

constexpr double operator""_cm (long double length)
 
constexpr double operator""_cm (unsigned long long int length)
 
constexpr double operator""_cm3 (long double length)
 
constexpr double operator""_m (long double length)
 
constexpr double operator""_m3 (long double length)
 
constexpr double operator""_mm (long double length)
 
constexpr double operator""_mm (unsigned long long int length)
 

Function Documentation

◆ operator""_cm() [1/2]

constexpr double cms_units::operators::operator""_cm ( long double  length)
constexpr

Definition at line 27 of file CMSUnits.h.

27 { return length * 1.; }

◆ operator""_cm() [2/2]

constexpr double cms_units::operators::operator""_cm ( unsigned long long int  length)
constexpr

Definition at line 32 of file CMSUnits.h.

32 { return length * 1; }

◆ operator""_cm3()

constexpr double cms_units::operators::operator""_cm3 ( long double  length)
constexpr

Definition at line 29 of file CMSUnits.h.

29 { return length * 1._cm * 1._cm * 1._cm; }

◆ operator""_m()

constexpr double cms_units::operators::operator""_m ( long double  length)
constexpr

Definition at line 28 of file CMSUnits.h.

28 { return length * 100.; }

◆ operator""_m3()

constexpr double cms_units::operators::operator""_m3 ( long double  length)
constexpr

Definition at line 30 of file CMSUnits.h.

30 { return length * 1._m * 1._m * 1._m; }

◆ operator""_mm() [1/2]

constexpr double cms_units::operators::operator""_mm ( long double  length)
constexpr

Definition at line 26 of file CMSUnits.h.

26 { return length * 0.1; }

◆ operator""_mm() [2/2]

constexpr double cms_units::operators::operator""_mm ( unsigned long long int  length)
constexpr

Definition at line 31 of file CMSUnits.h.

31 { return length * 0.1; }