2023-10-13から1日間の記事一覧

basic_string::operator=(const std::basic_string<char> &str)

C++

std::basic_string<char>の参照を引数に取る代入演算子。basic_string::operator= - cpprefjp C++日本語リファレンスbasic_string.cppで、こう書く。 親のoperator=に、引数strを渡すようにしてる。 オーバーロードした代入演算子を通って、文字列が代入されてる。</char>…