Lines Matching refs:value

41 // and silence C4800 (C4800: 'int *const ': forcing value
70 internal::negation<std::true_type>>::value,
74 internal::negation<std::false_type>>::value,
77 // With other types that fit the requirement of a value member that is
81 internal::negation<std::integral_constant<int, 0>>>::value,
86 internal::negation<std::integral_constant<int, 1>>>::value,
91 internal::negation<std::integral_constant<int, -1>>>::value,
96 // be legal according to [meta.logical] because `bool(T::value)` is valid), are
111 static_assert(std::is_base_of<std::true_type, internal::conjunction<>>::value,
114 // One predicate: inherits from that predicate, regardless of value.
116 std::is_base_of<MyFalse<0>, internal::conjunction<MyFalse<0>>>::value,
120 std::is_base_of<MyTrue<0>, internal::conjunction<MyTrue<0>>>::value, "");
125 MyTrue<2>>>::value,
130 MyFalse<2>>>::value,
134 // define a value member.
138 Empty>>::value,
144 MyTrue<2>>>::value,
151 std::is_base_of<std::false_type, internal::disjunction<>>::value, "");
153 // One predicate: inherits from that predicate, regardless of value.
155 std::is_base_of<MyFalse<0>, internal::disjunction<MyFalse<0>>>::value,
159 std::is_base_of<MyTrue<0>, internal::disjunction<MyTrue<0>>>::value, "");
164 MyFalse<2>>>::value,
169 MyTrue<2>>>::value,
173 // define a value member.
177 Empty>>::value,
183 MyFalse<2>>>::value,
197 static_assert(internal::is_callable_r<int, C>::value, "");
198 static_assert(internal::is_callable_r<int, C&>::value, "");
199 static_assert(internal::is_callable_r<int, const C>::value, "");
200 static_assert(internal::is_callable_r<int, const C&>::value, "");
202 static_assert(internal::is_callable_r<void, C>::value, "");
203 static_assert(internal::is_callable_r<const volatile void, C>::value, "");
204 static_assert(internal::is_callable_r<char, C>::value, "");
209 static_assert(internal::is_callable_r<void, C&, int>::value, "");
210 static_assert(!internal::is_callable_r<int, C&, int>::value, "");
211 static_assert(!internal::is_callable_r<std::string, C&, int>::value, "");
212 static_assert(!internal::is_callable_r<void, const C&, int>::value, "");
214 static_assert(internal::is_callable_r<std::string, C, int>::value, "");
215 static_assert(internal::is_callable_r<void, C, int>::value, "");
216 static_assert(!internal::is_callable_r<int, C, int>::value, "");
219 static_assert(!internal::is_callable_r<void, C, std::string>::value, "");
220 static_assert(!internal::is_callable_r<void, C, int, int>::value, "");
238 static_assert(internal::is_callable_r<NonMoveable, Callable>::value);
239 static_assert(internal::is_callable_r<void, Callable>::value);
241 internal::is_callable_r<const volatile void, Callable>::value);
243 static_assert(!internal::is_callable_r<int, Callable>::value);
244 static_assert(!internal::is_callable_r<NonMoveable, Callable, int>::value);
250 static_assert(!internal::is_callable_r<void, int>::value, "");
251 static_assert(!internal::is_callable_r<void, void (C::*)()>::value, "");
252 static_assert(!internal::is_callable_r<void, void (C::*)(), C*>::value, "");
346 // value as BuiltInDefaultValue<T>::Get() does.
359 int value() const { return value_; }
371 int value() const { return value_; }
382 EXPECT_EQ(42, BuiltInDefaultValue<MyDefaultConstructible>::Get().value());
417 EXPECT_EQ(42, DefaultValue<const MyNonDefaultConstructible>::Get().value());
734 // and we feed Return an In value, then the Out should be created through the
749 static_assert(std::is_convertible<const R&, U>::value, "");
750 static_assert(!std::is_convertible<R, U>::value, "");
773 static_assert(std::is_convertible<std::string&, S>::value, "");
775 static_assert(!std::is_convertible<std::string&&, S>::value, "");
777 static_assert(!std::is_convertible<const std::string&, S>::value, "");
786 static_assert(!std::is_convertible<RA, Action<S()>>::value, "");
788 static_assert(!std::is_convertible<RA, OnceAction<S()>>::value, "");
806 Action<std::unique_ptr<int>()>>::value,
830 // Tests that the type of the value passed into Return is converted into T
1005 // Tests that DoDefault() returns the built-in default value for the
1014 // the process when there is no built-in default value for the return type.
1042 // Tests that DoDefault() returns the default value set by
1342 // value then the final action should receive an rvalue reference, but initial
1347 // Mock action accepts by value: the initial action should be fed a const
1639 // Assigns a new value to ref_wrapper.
1651 // Tests using ByRef() on a const value.
1660 // Tests using ByRef() on a non-const value.
1712 explicit UnaryConstructorClass(int v) : value(v) {}
1713 int value;
1720 EXPECT_EQ(4000, c->value);
1728 EXPECT_EQ(4000, c->value);
1736 EXPECT_EQ(4000, c->value);
1807 // Check default value
1963 // It should be possible to use an action that returns a value with a mock
2147 ACTION(ReturnArity) { return std::tuple_size<args_type>::value; }