Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit538bfc6

Browse files
committed
add operator< for actor_ref
1 parent60fd1cb commit538bfc6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎lib/acto.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ bool actor_ref::operator!=(const actor_ref& rhs) const noexcept {
8383
return !operator==(rhs);
8484
}
8585

86+
bool actor_ref::operator<(const actor_ref& rhs)constnoexcept {
87+
return m_object < rhs.m_object;
88+
}
89+
8690
voidactor::die() {
8791
terminating_ =true;
8892
}

‎lib/acto.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ class actor_ref {
260260

261261
booloperator==(const actor_ref& rhs)constnoexcept;
262262
booloperator!=(const actor_ref& rhs)constnoexcept;
263+
booloperator<(const actor_ref& rhs)constnoexcept;
263264

264265
explicitoperatorbool()constnoexcept {
265266
returnassigned();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp