Table Of Contents

Previous topic

to_int_type

Next topic

eof

This Page

eq_int_type

Interface

static SPROUT_CONSTEXPR bool eq_int_type(int_type c1, int_type c2) SPROUT_NOEXCEPT;

Returns

Equivalent to std::char_traits<Char>::eq_int_type(c1, c2).

Examples

#include <sprout/string.hpp>
using namespace sprout;

SPROUT_STATIC_CONSTEXPR int x = 'H';
SPROUT_STATIC_CONSTEXPR int y = 'H';
SPROUT_STATIC_CONSTEXPR auto result = char_traits<char>::eq_int_type(x, y);
static_assert(result, "x is equal to y.");

Complexity

constant.
Recursive function invocations in O(1) (constant) depth.