Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lang/cpp11/defaulted_and_deleted_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int main()
sometype();

// デフォルト動作のコピーコンストラクタを使用する
sometype(const sometype &) = default;
sometype(const sometype&) = default;

// デフォルト動作のデストラクタを使用する。
// ただし、このデストラクタは仮想関数とする。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const auto b = hello("Hana");

try {
const auto c = hello(""); // C++26: 例外を捕捉
} catch (const validation_error &) {
} catch (const validation_error&) {
// everything is fine
}

Expand Down
2 changes: 1 addition & 1 deletion lang/cpp26/constexpr_cast_from_voidptr.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private:
std::string_view (*speak_function)(const void*);
public:
template <typename Animal>
constexpr AnimalView(const Animal &a)
constexpr AnimalView(const Animal& a)
: animal{&a}, speak_function{[](const void* object) {
return static_cast<const Animal*>(object)->speak();
}}
Expand Down
2 changes: 1 addition & 1 deletion reference/map/map/at.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```cpp
T& at(const key_type& x); // (1) C++11
const T& at(const key_type & x) const; // (2) C++11
const T& at(const key_type& x) const; // (2) C++11

template<class K>
T& at(const K& x); // (3) C++26
Expand Down
2 changes: 1 addition & 1 deletion reference/set/multiset/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct my_struct // ムーブオンリーな型
int num = 0;
static inline int count = 0;
constexpr my_struct(int i) noexcept : value(i) { num = count++; };
bool operator < (const my_struct &rhs) const noexcept {return this->value < rhs.value;}
bool operator < (const my_struct& rhs) const noexcept {return this->value < rhs.value;}
};

int main()
Expand Down
2 changes: 1 addition & 1 deletion reference/set/set/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct my_struct // ムーブオンリーな型
: private noncopyable {
int value;
constexpr explicit my_struct(int i) noexcept : value(i) {};
bool operator < (const my_struct &rhs) const noexcept {return this->value < rhs.value;}
bool operator < (const my_struct& rhs) const noexcept {return this->value < rhs.value;}
};

int main()
Expand Down
2 changes: 1 addition & 1 deletion reference/tuple/ignore.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace std {
struct ignore-type { // 説明用の定義 (C++26)
constexpr const ignore-type&
operator=(const auto &) const noexcept
operator=(const auto&) const noexcept
{ return *this; }
};

Expand Down
2 changes: 1 addition & 1 deletion reference/unordered_map/unordered_map/at.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```cpp
T& at(const key_type& x); // (1) C++11
const T& at(const key_type & x) const; // (2) C++11
const T& at(const key_type& x) const; // (2) C++11

template<class K>
T& at(const K& x); // (3) C++26
Expand Down
2 changes: 1 addition & 1 deletion reference/unordered_set/unordered_multiset/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct my_struct // ムーブオンリーな型
int num = 0;
static inline int count = 0;
constexpr my_struct(int i) noexcept : value(i) { num = count++; };
bool operator == (const my_struct &rhs) const noexcept {return this->value == rhs.value;}
bool operator == (const my_struct& rhs) const noexcept {return this->value == rhs.value;}
};

// ハッシュ関数
Expand Down
2 changes: 1 addition & 1 deletion reference/unordered_set/unordered_set/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct my_struct // ムーブオンリーな型
int num = 0;
static inline int count = 0;
constexpr my_struct(int i) noexcept : value(i) { num = count++; };
bool operator == (const my_struct &rhs) const noexcept {return this->value == rhs.value;}
bool operator == (const my_struct& rhs) const noexcept {return this->value == rhs.value;}
};

// ハッシュ関数
Expand Down