1 /* ///////////////////////////////////////////////////////////////////////
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
12 #ifndef EXTL_MPL_MATH_IS_EVEN_H
13 #define EXTL_MPL_MATH_IS_EVEN_H
19 /* ///////////////////////////////////////////////////////////////////////
25 /* ///////////////////////////////////////////////////////////////////////
26 * ::extl::mpl namespace
28 EXTL_MPL_BEGIN_WHOLE_NAMESPACE
29 /*!\brief: is_even class
31 * \ingroup extl_group_mpl
33 template < e_umax_int_t N
>
36 EXTL_STATIC_MEMBER_CONST(e_bool_t
, value
= ((N
% 2) == 0));
39 /* ///////////////////////////////////////////////////////////////////////
42 #ifdef EXTL_MPL_MATH_IS_EVEN_TEST_ENABLE
43 # include "unit_test/is_even_test.h"
45 /* ///////////////////////////////////////////////////////////////////////
46 * ::extl::mpl namespace
48 EXTL_MPL_END_WHOLE_NAMESPACE
50 /* //////////////////////////////////////////////////////////////////// */
51 #endif /* EXTL_MPL_MATH_IS_EVEN_H */
52 /* //////////////////////////////////////////////////////////////////// */