0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd::db: Elide std::function wrapping for equal comparator (related 6c2736f592).

This commit is contained in:
Jason Volk 2020-07-28 01:24:27 -07:00
parent 2e1fc0c234
commit 4b7ebb3cf0
6 changed files with 6 additions and 6 deletions

View file

@ -37,7 +37,7 @@ struct ircd::db::comparator
string_view name;
less_function *less {nullptr};
std::function<equal_function> equal;
equal_function *equal {nullptr};
std::function<separator_function> separator;
std::function<successor_function> successor;
bool hashable {true};

View file

@ -87,7 +87,7 @@ ircd::m::dbs::desc::event_refs__cmp
{
"_event_refs",
event_refs__cmp_less,
std::equal_to<string_view>{},
db::cmp_string_view::equal,
};
const ircd::db::descriptor

View file

@ -61,7 +61,7 @@ ircd::m::dbs::desc::event_state__cmp
{
"_event_state",
event_state__cmp_lt,
std::equal_to<string_view>{},
db::cmp_string_view::equal,
};
const ircd::db::descriptor

View file

@ -86,7 +86,7 @@ ircd::m::dbs::desc::room_events__cmp
{
"_room_events",
room_events__cmp_lt,
std::equal_to<string_view>{},
db::cmp_string_view::equal,
};
/// This column stores events in sequence in a room. Consider the following:

View file

@ -68,7 +68,7 @@ ircd::m::dbs::desc::room_state_space__cmp
{
"_room_state_space",
room_state_space__cmp_lt,
std::equal_to<string_view>{},
db::cmp_string_view::equal,
};
const ircd::db::prefix_transform

View file

@ -85,7 +85,7 @@ ircd::m::dbs::desc::room_type__cmp
{
"_room_type",
room_type__cmp_lt,
std::equal_to<string_view>{},
db::cmp_string_view::equal,
};
/// This column stores events by type in sequence in a room. Consider the