| Home |
Concepts |
Types |
base_unit<base_quantity Qb, measurement_system Sm>
Header
#include <pqs/type_templates/base_unit.hpp>
A model of unit which combines 1 a base_quantity and a measurement_system
namespace pqs::imperial::length_unit{
struct ft : base_unit<
base_length,imperial_measurement_system
>{};
}
int main()
{
std::cout << pqs::imperial::length_unit::ft::name<pqs::charset_utf8> <<'\n';
}
sample output : ƒƫ
typename |
type_template |
notes |
Ub |
base_unit< Qb , Sm > |
|
type expression |
result |
notes |
get_base_unit_symbol< Qb, Sm, Cs> |
str |
a string representing the base_unit symbol for Ub in the CS encoding |
type expression |
result |
notes |
Ub::name< Cs > |
str |
string representing the base_unit symbol for Ub. name is initialised by get_base_unit_symbol< Qb, Sm, Cs> |