Namespaces
Variants
Actions

std::filesystem::directory_entry::operator=

From cppreference.com
 
C++
 
Filesystem library
Classes
Functions
File types
 
std::filesystem::directory_entry
directory_entry& operator=( const directory_entry& other ) = default;
(1) (since C++17)
directory_entry& operator=( directory_entry&& other ) noexcept = default;
(2) (since C++17)

Replaces the contents of the directory entry (path and cached attributes, if any) with the contents of other.

Both copy- and move-assignment operators for directory_entry are defaulted.

Contents

[edit] Parameters

other - other directory_entry

[edit] Return value

*this

[edit] Example

[edit] See also

assigns contents
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant