Lines Matching defs:value
157 // like `std::string::~string` being called on an uninitialized value.
539 T const& operator + ( T const& value, StreamEndStop ) {
540 return value;
1451 auto operator << ( T const& value ) -> ReusableStringStream& {
1452 *m_oss << value;
1473 StringRef lookup( int value ) const;
1574 static const bool value = decltype(test<std::ostream, const T&>(0))::value;
1582 !std::is_enum<T>::value && !std::is_base_of<std::exception, T>::value,
1588 !std::is_enum<T>::value && std::is_base_of<std::exception, T>::value,
1595 std::is_enum<T>::value
1596 , std::string>::type convertUnstreamable( T const& value ) {
1597 return convertUnknownEnumToString( value );
1619 typename std::enable_if<::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type
1620 convert(const Fake& value) {
1624 rss.operator<<(value);
1630 typename std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type
1631 convert( const Fake& value ) {
1633 return Detail::convertUnstreamable(value);
1635 return CATCH_CONFIG_FALLBACK_STRINGIFIER(value);
1733 static std::string convert(std::byte value);
1738 static std::string convert(int value);
1742 static std::string convert(long value);
1746 static std::string convert(long long value);
1750 static std::string convert(unsigned int value);
1754 static std::string convert(unsigned long value);
1758 static std::string convert(unsigned long long value);
1786 static std::string convert(float value);
1792 static std::string convert(double value);
1926 bool = (N < std::tuple_size<Tuple>::value)
1976 [](const auto& value) {
1977 return ::Catch::Detail::stringify(value);
2014 static const bool value = false;
2041 struct StringMaker<R, typename std::enable_if<is_range<R>::value && !::Catch::Detail::IsStreamInsertable<R>::value>::type> {
2176 static std::string convert( enumName value ) { \
2178 return static_cast<std::string>(enumInfo.lookup( static_cast<int>( value ) )); \
2245 static_assert(always_false<T>::value,
2252 static_assert(always_false<T>::value,
2259 static_assert(always_false<T>::value,
2266 static_assert(always_false<T>::value,
2273 static_assert(always_false<T>::value,
2280 static_assert(always_false<T>::value,
2287 static_assert(always_false<T>::value,
2294 static_assert(always_false<T>::value,
2391 static_assert(always_false<RhsT>::value,
2398 static_assert(always_false<RhsT>::value,
2421 auto operator <=( bool value ) -> ExprLhs<bool> {
2422 return ExprLhs<bool>{ value };
2620 MessageStream& operator << ( T const& value ) {
2621 m_stream << value;
2634 MessageBuilder& operator << ( T const& value ) {
2635 m_stream << value;
2661 void captureValue( size_t index, std::string const& value );
2664 void captureValues( size_t index, T const& value ) {
2665 captureValue( index, Catch::Detail::stringify( value ) );
2669 void captureValues( size_t index, T const& value, Ts const&... values ) {
2670 captureValue( index, Catch::Detail::stringify(value) );
3090 explicit Approx ( double value );
3096 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3097 Approx operator()( T const& value ) const {
3098 Approx approx( static_cast<double>(value) );
3105 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3106 explicit Approx( T const& value ): Approx(static_cast<double>(value))
3109 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3115 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3120 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3125 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3130 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3135 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3140 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3145 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3150 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3157 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3164 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3187 static std::string convert(Catch::Detail::Approx const& value);
3697 template <typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3702 template <typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3707 template <typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
3957 SingleValueGenerator(T&& value) : m_value(std::move(value)) {}
3969 static_assert(!std::is_same<T, bool>::value,
4002 GeneratorWrapper<T> value(T&& value) {
4003 return GeneratorWrapper<T>(pf::make_unique<SingleValueGenerator<T>>(std::forward<T>(value)));
4019 m_generators.emplace_back(value(std::forward<T>(val)));
4073 return makeGenerators( value( std::forward<T>( val ) ), std::forward<Gs>( moreGenerators )... );
4077 return makeGenerators( value( T( std::forward<U>( val ) ) ), std::forward<Gs>( moreGenerators )... );
4171 Catch::throw_exception(GeneratorException("No valid value found in filtered generator"));
4202 static_assert(!std::is_same<T, bool>::value,
4650 typename std::enable_if<std::is_integral<T>::value && !std::is_same<T, bool>::value,
4659 typename std::enable_if<std::is_floating_point<T>::value,
4702 static_assert(std::is_arithmetic<T>::value && !std::is_same<T, bool>::value, "Type must be numeric");
4708 static_assert(std::is_integral<T>::value && !std::is_same<T, bool>::value, "Type must be an integer");
4714 static_assert(!std::is_same<T, bool>::value,
4903 id value = performOptionalSelector( cls, sel );
4904 if( value )
4905 return [(NSString*)value UTF8String];
5680 // The return value indicates if the messages buffer should be cleared:
5812 explicit Node( T const& _value ) : value( _value ) {}
5816 T value;
6529 inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> typename std::enable_if<!std::is_same<void, decltype(fn(args...))>::value>::type {
6534 inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> typename std::enable_if<std::is_same<void, decltype(fn(args...))>::value>::type {
6746 typename std::enable_if<!is_related<Fun, BenchmarkFunction>::value, int>::type = 0>
6874 using run_for_at_least_argument_t = typename std::conditional<is_callable<Fun(Chronometer)>::value, Chronometer, int>::type;
7356 typename std::enable_if<!Detail::is_related<Fun, Benchmark>::value, int>::type = 0>
7399 using TStorage = typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type;
7879 Approx::Approx ( double value )
7883 m_value( value )
7903 // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value
7904 // Thanks to Richard Harris for his help refining the scaled margin value
7934 std::string StringMaker<Catch::Detail::Approx>::convert(Catch::Detail::Approx const& value) {
7935 return value.toString();
8412 // Use Catch's value for console width (store Clara's off to the side, if present)
8956 auto value() const -> T const & {
8969 ResultValueBase( Type, T const &value ) : ResultBase( Ok ) {
8970 new( &m_value ) T( value );
9010 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }
9094 return ParserResult::runtimeError( "Expected a boolean value but did not recognise: '" + source + "'" );
9170 static_assert( std::is_same<ReturnType, ParserResult>::value, "Lambda must return void or clara::ParserResult" );
9213 static_assert( std::is_same<typename UnaryLambdaTraits<L>::ArgType, bool>::value, "flags must be boolean" );
9438 if( result.value() == ParseResultType::ShortCircuitAll )
9439 return InternalParseResult::ok( ParseState( result.value(), remainingTokens ) );
9451 if( result.value() == ParseResultType::ShortCircuitAll )
9452 return InternalParseResult::ok( ParseState( result.value(), remainingTokens ) );
9621 while( result.value().remainingTokens() ) {
9627 result = parseInfo.parser->parse(exeName, result.value().remainingTokens());
9630 if (result.value().type() != ParseResultType::NoMatch) {
9638 if( result.value().type() == ParseResultType::ShortCircuitAll )
9641 return InternalParseResult::runtimeError( "Unrecognised token: " + result.value().remainingTokens()->token );
9686 // Restore Clara's value for console width, if present
10617 StringRef EnumInfo::lookup( int value ) const {
10619 if( valueToName.first == value )
10622 return "{** unexpected enum value **}"_sr;
10633 for( auto value : values )
10634 enumInfo->m_values.emplace_back(value, valueNames[i++]);
11057 // The return value indicates if the messages buffer should be cleared:
11607 CATCH_INTERNAL_ERROR( "Unknown FloatingPointKind value" );
11934 void Capturer::captureValue( size_t index, std::string const& value ) {
11936 m_messages[index].message += value;
12256 // prepare the output value
12697 // value, but we do not want to invoke the side-effect if
12807 // We have no use for the return value (whether messages should be cleared), because messages were made scoped
13571 // the return value to 255 prevents false negative when some multiple
15037 auto value = *reinterpret_cast<char*>(&one);
15038 return value ? Little : Big;
15061 std::string fpToString( T value, int precision ) {
15062 if (Catch::isnan(value)) {
15069 << value;
15164 std::string StringMaker<std::byte>::convert(std::byte value) {
15165 return ::Catch::Detail::stringify(std::to_integer<unsigned long long>(value));
15169 std::string StringMaker<int>::convert(int value) {
15170 return ::Catch::Detail::stringify(static_cast<long long>(value));
15172 std::string StringMaker<long>::convert(long value) {
15173 return ::Catch::Detail::stringify(static_cast<long long>(value));
15175 std::string StringMaker<long long>::convert(long long value) {
15177 rss << value;
15178 if (value > Detail::hexThreshold) {
15179 rss << " (0x" << std::hex << value << ')';
15184 std::string StringMaker<unsigned int>::convert(unsigned int value) {
15185 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value));
15187 std::string StringMaker<unsigned long>::convert(unsigned long value) {
15188 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value));
15190 std::string StringMaker<unsigned long long>::convert(unsigned long long value) {
15192 rss << value;
15193 if (value > Detail::hexThreshold) {
15194 rss << " (0x" << std::hex << value << ')';
15203 std::string StringMaker<signed char>::convert(signed char value) {
15204 if (value == '\r') {
15206 } else if (value == '\f') {
15208 } else if (value == '\n') {
15210 } else if (value == '\t') {
15212 } else if ('\0' <= value && value < ' ') {
15213 return ::Catch::Detail::stringify(static_cast<unsigned int>(value));
15216 chstr[1] = value;
15233 std::string StringMaker<float>::convert(float value) {
15234 return fpToString(value, precision) + 'f';
15239 std::string StringMaker<double>::convert(double value) {
15240 return fpToString(value, precision);
15573 // This means: bitpattern 10XX XXXX and the extracted value is sane (ish)
15575 uint32_t value = headerValue(c);
15579 value = (value << 6) | (nc & 0x3F);
15586 (value < 0x80) ||
15587 (0x80 <= value && value < 0x800 && encBytes > 2) ||
15588 (0x800 < value && value < 0x10000 && encBytes > 3) ||
15589 // Encoded value out of range
15590 (value >= 0x110000)
16336 auto value() const -> double {
16368 return os << duration.value() << ' ' << duration.unitsAsString();
16414 friend TablePrinter& operator << (TablePrinter& tp, T const& value) {
16415 tp.m_oss << value;
16742 std::string value = col.rows[row];
16745 if (value != "0")
16746 stream << value;
16749 } else if (value != "0") {
16752 << value << ' ' << col.label;
16918 TestGroupStats const& stats = groupNode.value;
16936 .writeAttribute("value", serializeFilters(m_config->getTestsOrTags()));
16941 .writeAttribute("value", m_config->rngSeed());
16954 TestCaseStats const& stats = testCaseNode.value;
17194 // The return value indicates if the messages buffer should be cleared:
17477 .writeAttribute("value", benchmarkStats.mean.point.count())
17483 .writeAttribute("value", benchmarkStats.standardDeviation.point.count())