operator>> Operator

Extracts a string from a specified basic_istream object.

template<class Path>
inline basic_istream<typename _Path::string_type::value_type, typename Path::string_type::traits_type>& operator>>(
   basic_istream<typename Path::string_type::value_type,
   typename Path::string_type::traits_type>& Istr,
   Path& Pval
);

Parameters

  • Istr
    A basic_istream object.

  • Pval
    A Path object. Path can be either a basic_path or a type that is derived from basic_path.

Return Value

Istr

Remarks

This operator extracts an object of type Path::string_type from Istr. If the extraction succeeds, the value is assigned to Pval.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

C++ Standard Library Header Files