operator<<,>>(std::fs::path) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# operator<<,>>(std::fs::path)

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | path

template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& os, const path& p ); | (1) | (filesystem TS)
template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator>>( std::basic_ostream<CharT,Traits>& os, path& p ); | (1) | (filesystem TS)

Performs stream input or output on the path `p`.

There is no special handling for spaces in the path: the user must himself ensure that spaces are not truncation when later read by stream input operator.

### [edit] Parameters

os | - | stream to perform input/output on
p | - | path to insert or extract

### [edit] Return value

os

### [edit] Exceptions

(none)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/path/operator_ltltgtgt&oldid=68615"