std::filesystem::path::assign

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

# Return value

*this

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3244C++17constraint that Source cannot be path was missingadded

# See also