Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 545 Bytes

op_assign.md

File metadata and controls

22 lines (16 loc) · 545 Bytes

operator=

  • memory[meta header]
  • std[meta namespace]
  • allocator[meta class]
  • function[meta id-type]
allocator& operator=(const allocator&);                     // (1) C++03 (暗黙定義)
allocator& operator=(const allocator&) = default;           // (1) C++11
constexpr allocator& operator=(const allocator&) = default; // (1) C++20

概要

代入する。

戻り値

代入後の*thisを返す。

参照