Searched refs:StrictNumeric (Results 1 – 6 of 6) sorted by relevance
133 class StrictNumeric {137 StrictNumeric() : value_(0) {} in StrictNumeric() function141 StrictNumeric(const StrictNumeric<Src>& rhs) in StrictNumeric() function147 StrictNumeric(Src value) in StrictNumeric() function161 typedef StrictNumeric<size_t> SizeT;
24 using base::StrictNumeric;625 EXPECT_EQ(1ULL, static_cast<uint64_t>(StrictNumeric<size_t>(1U))); in TEST()627 EXPECT_EQ(1U, static_cast<size_t>(StrictNumeric<unsigned>(1U))); in TEST()629 EXPECT_TRUE(CheckedNumeric<uint64_t>(StrictNumeric<unsigned>(1U)).IsValid()); in TEST()630 EXPECT_TRUE(CheckedNumeric<int>(StrictNumeric<unsigned>(1U)).IsValid()); in TEST()631 EXPECT_FALSE(CheckedNumeric<unsigned>(StrictNumeric<int>(-1)).IsValid()); in TEST()
73 CheckedNumeric(StrictNumeric<Src> value) in CheckedNumeric()
28 using base::StrictNumeric;629 EXPECT_EQ(1ULL, static_cast<uint64_t>(StrictNumeric<size_t>(1U))); in TEST()631 EXPECT_EQ(1U, static_cast<size_t>(StrictNumeric<unsigned>(1U))); in TEST()633 EXPECT_TRUE(CheckedNumeric<uint64_t>(StrictNumeric<unsigned>(1U)).IsValid()); in TEST()634 EXPECT_TRUE(CheckedNumeric<int>(StrictNumeric<unsigned>(1U)).IsValid()); in TEST()635 EXPECT_FALSE(CheckedNumeric<unsigned>(StrictNumeric<int>(-1)).IsValid()); in TEST()