Files
2025-10-25 03:02:53 +03:00

3.0 KiB

[fs.path.assign]

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.6 Class path [fs.class.path]

31.12.6.5 Members [fs.path.member]

31.12.6.5.2 Assignments [fs.path.assign]

🔗

path& operator=(const path& p);

1

#

Effects: If *this and p are the same object, has no effect.

Otherwise, sets both respective pathnames of *this to the respective pathnames of p.

2

#

Returns: *this.

🔗

path& operator=(path&& p) noexcept;

3

#

Effects: If *this and p are the same object, has no effect.

Otherwise, sets both respective pathnames of *this to the respective pathnames of p.

p is left in a valid but unspecified state.

[Note 1:

A valid implementation is swap(p).

— end note]

4

#

Returns: *this.

🔗

path& operator=(string_type&& source); path& assign(string_type&& source);

5

#

Effects: Sets the pathname in the detected-format of source to the original value of source.

source is left in a valid but unspecified state.

6

#

Returns: *this.

🔗

template<class Source> path& operator=(const Source& source); template<class Source> path& assign(const Source& source); template<class InputIterator> path& assign(InputIterator first, InputIterator last);

7

#

Effects: Let s be the effective range of source ([fs.path.req]) or the range [first, last), with the encoding converted if required ([fs.path.cvt]).

Finds the detected-format of s ([fs.path.fmt.cvt]) and sets the pathname in that format to s.

8

#

Returns: *this.