Lines Matching refs:value

790     template<class T> struct is_lvalue_reference { const static bool value=false; };
791 template<class T> struct is_lvalue_reference<T&> { const static bool value=true; };
802 static_assert(!is_lvalue_reference<T>::value,
814 template<class T> struct is_enum { constexpr static bool value = __is_enum(T); };
822 { static const bool value = false; };
831 static constexpr bool value = false;
836 static constexpr bool value = true;
881 struct StringMaker : public detail::StringMakerBase<detail::has_insertion_operator<T>::value>
905 template <typename T, typename detail::enable_if<!detail::is_enum<T>::value, bool>::type = true>
906 String toString(const DOCTEST_REF_WRAP(T) value) {
907 return StringMaker<T>::convert(value);
932 template <typename T, typename detail::enable_if<detail::is_enum<T>::value, bool>::type = true>
933 String toString(const DOCTEST_REF_WRAP(T) value) {
935 return toString(static_cast<UT>(value));
946 explicit Approx(double value);
948 Approx operator()(double value) const;
952 explicit Approx(const T& value,
953 typename detail::enable_if<std::is_constructible<double, T>::value>::type* =
955 *this = Approx(static_cast<double>(value));
963 typename detail::enable_if<std::is_constructible<double, T>::value, Approx&>::type epsilon(
974 typename detail::enable_if<std::is_constructible<double, T>::value, Approx&>::type scale(
999 template <typename T> friend typename detail::enable_if<std::is_constructible<double, T>::value, bool>::type
1037 template<class T> struct not_char_pointer { enum { value = 1 }; };
1038 template<> struct not_char_pointer<char*> { enum { value = 0 }; };
1039 template<> struct not_char_pointer<const char*> { enum { value = 0 }; };
1101 static_assert(deferred_false<R>::value, \
1167 #define DOCTEST_COMPARISON_RETURN_TYPE typename enable_if<can_use_op<L>::value || can_use_op<R>::value, bool>::type
1222 DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4800) // 'int': forcing value to bool
1542 struct StringStream : public StringStreamBase<has_insertion_operator<T>::value>
1546 void toStream(std::ostream* s, const T& value) {
1547 StringStream<T>::convert(s, value);
1693 void addFilter(const char* filter, const char* value);
1695 void setOption(const char* option, int value);
1696 void setOption(const char* option, const char* value);
2794 DOCTEST_MSVC_SUPPRESS_WARNING(4800) // forcing value to bool 'true' or 'false' (performance warning)
2925 String fpToString(T value, int precision) {
2927 oss << std::setprecision(precision) << std::fixed << value;
3097 // first value becomes desired", all others become 0.
3544 Approx::Approx(double value)
3547 , m_value(value) {}
3549 Approx Approx::operator()(double value) const {
3550 Approx approx(value);
4024 DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wcatch-value")
4239 // but the value was found experimentally, so there is no strong guarantee
4800 // This means: bitpattern 10XX XXXX and the extracted value is sane (ish)
4802 uint32_t value = headerValue(c);
4806 value = (value << 6) | (nc & 0x3F);
4813 (value < 0x80) ||
4814 ( value < 0x800 && encBytes > 2) || // removed "0x80 <= value &&" because redundant
4815 (0x800 < value && value < 0x10000 && encBytes > 3) ||
4816 // Encoded value out of range
4817 (value >= 0x110000)
5993 bool parseOptionImpl(int argc, const char* const* argv, const char* pattern, String* value) {
5998 if(temp && (value || strlen(temp) == strlen(pattern))) { //!OCLINT prefer early exits and continue
6009 if(value) {
6010 // parsing the value of an option
6014 *value = temp;
6018 // just a flag - no value
6028 bool parseOption(int argc, const char* const* argv, const char* pattern, String* value = nullptr,
6030 if(value)
6031 *value = defaultVal;
6034 if(parseOptionImpl(argc, argv, pattern + strlen(DOCTEST_CONFIG_OPTIONS_PREFIX), value))
6037 return parseOptionImpl(argc, argv, pattern, value);
6085 // if the value matches any of the positive/negative possibilities
6252 void Context::addFilter(const char* filter, const char* value) { setOption(filter, value); }
6261 void Context::setOption(const char* option, int value) {
6262 setOption(option, toString(value).c_str());
6267 void Context::setOption(const char* option, const char* value) {
6268 auto argv = String("-") + option + "=" + value;