std::filesystem::path::assign
Min standard notice:
Replaces the contents to the path object by a new pathname constructed from the given character sequence.
# Declarations
path& assign( string_type&& source );
(since C++17)
template< class Source >
path& assign( const Source& source );
(since C++17)
template< class InputIt >
path& assign( InputIt first, InputIt last );
(since C++17)
# Parameters
source: a character range to use, represented as std::string, std::string_view, pointer to a null-terminated multibyte string, or as an input iterator with char value type that points to a null-terminated multibyte stringfirst, last: a character range to use
# Return value
*this
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3244 | C++17 | constraint that Source cannot be path was missing | added |