1#ifndef NE_STL_INCLUDENE_STL_VALUE_DEF_H
2#define NE_STL_INCLUDENE_STL_VALUE_DEF_H
16template <stateful_
bool _value>
22#define NIM_STD_DBL_MAX (1.7976931348623156e+200)
23#define NIM_STD_DBL_MIN (2.2250738585072014e-200)
24#define NIM_STD_DBL_DEFAULT (1.7976931348623155e+200)
25#define NIM_STD_DBL_EPSILON (2.2204460492503131e-16)
32 inline static bool is_equal(
double valuea,
double valueb) {
return (fabs(valuea - valueb) <=
epsilon_value()); }
35template <
class first_type,
class second_type>
41 template <
class _first_type = first_type,
class _second_type = second_type>
42 pair(
const _first_type& val1,
const _second_type& val2)
48 template <
class _self = pair>
56 if (
this != std::addressof(right)) {
64template <
class first_type,
class second_type>
Definition ne_stl_any.h:7
pair< first_type, second_type > make_pair(const first_type &_first, const second_type &_second)
Definition ne_stl_value_def.h:65
stateful_bool
Definition ne_stl_value_def.h:15
#define NIM_STD_DBL_MIN
Definition ne_stl_value_def.h:23
#define NIM_STD_DBL_MAX
Definition ne_stl_value_def.h:22
#define NIM_STD_DBL_DEFAULT
Definition ne_stl_value_def.h:24
#define NIM_STD_DBL_EPSILON
Definition ne_stl_value_def.h:25
Definition ne_stl_value_def.h:12
Definition ne_stl_value_def.h:9
Definition ne_stl_type_traits.h:9
Definition ne_stl_value_def.h:27
static double max_value()
Definition ne_stl_value_def.h:29
static bool is_equal(double valuea, double valueb)
Definition ne_stl_value_def.h:32
static bool is_default_value(double value)
Definition ne_stl_value_def.h:33
static double nim_value()
Definition ne_stl_value_def.h:30
static double default_value()
Definition ne_stl_value_def.h:31
static double epsilon_value()
Definition ne_stl_value_def.h:28
Definition ne_stl_value_def.h:36
pair & operator=(const _self &right)
Definition ne_stl_value_def.h:49
pair(const _first_type &val1, const _second_type &val2)
Definition ne_stl_value_def.h:42
second_type second
Definition ne_stl_value_def.h:62
pair()
Definition ne_stl_value_def.h:37
first_type first
Definition ne_stl_value_def.h:61
pair(const pair &)=default
void swap(pair &right)
Definition ne_stl_value_def.h:55