A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue3269 below:

Parse manipulators do not specify the result of the extraction from stream

-1- Each parse overload specified in this subclause calls from_stream unqualified, so as to enable argument dependent lookup (6.5.4 [basic.lookup.argdep]). In the following paragraphs, let is denote an object of type basic_istream<charT, traits> and let I be basic_istream<charT, traits>&, where charT and traits are template parameters in that context.

template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp);

-2- Remarks Constraints: This function shall not participate in overload resolution unless The expression

from_stream(declval<basic_istream<charT, traits>&>(), fmt.c_str(), tp)
is a valid expression well-formed when treated as an unevaluated operand. -3- Returns: A manipulator such that , when extracted from a basic_istream<charT, traits> is, the expression is >> parse(fmt, tp) has type I, value is, and calls from_stream(is, fmt.c_str(), tp).
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev);

-4- Remarks Constraints: This function shall not participate in overload resolution unless The expression

from_stream(declval<basic_istream<charT, traits>&>(), fmt.c_str(), tp, addressof(abbrev))
is a valid expression well-formed when treated as an unevaluated operand. -5- Returns: A manipulator such that , when extracted from a basic_istream<charT, traits> is, the expression is >> parse(fmt, tp, abbrev) has type I, value is, and calls from_stream(is, fmt.c_str(), tp, addressof(abbrev)).
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          minutes& offset);

-6- Remarks Constraints: This function shall not participate in overload resolution unless The expression

from_stream(declval<basic_istream<charT, traits>&>(), fmt.c_str(), tp, 
            declval<basic_string<charT, traits, Alloc>*>()nullptr, &offset)
is a valid expression well-formed when treated as an unevaluated operand. -7- Returns: A manipulator such that , when extracted from a basic_istream<charT, traits> is, the expression is >> parse(fmt, tp, offset) has type I, value is, and calls from_stream(is, fmt.c_str(), tp, static_cast<basic_string<charT, traits, Alloc>*>(nullptr ), &offset).
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev, minutes& offset);

-8- Remarks Constraints: This function shall not participate in overload resolution unless The expression

from_stream(declval<basic_istream<charT, traits>&>(),
            fmt.c_str(), tp, addressof(abbrev), &offset)
is a valid expression well-formed when treated as an unevaluated operand. -9- Returns: A manipulator such that , when extracted from a basic_istream<charT, traits> is, the expression is >> parse(fmt, tp, abbrev, offset) has type I, value is, and calls from_stream(is, fmt.c_str(), tp, addressof(abbrev), &offset).

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4