std::chrono::duration::operator= - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::chrono::duration::operator=

From cppreference.com
< cpp‎ | chrono‎ | duration

duration& operator=( const duration &other ) = default; |  | (since C++11)

Assigns the contents of one `duration` to another.

### [edit] Parameters

other | - | `duration` to copy from

### [edit] See also

(constructor) | constructs new duration (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/chrono/duration/operator%3D&oldid=63264"