mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::db: Move enum pos
so the definition is available.
This commit is contained in:
parent
5f25d90fd2
commit
3ef01bad59
1 changed files with 9 additions and 9 deletions
|
@ -101,6 +101,15 @@ namespace ircd::db
|
|||
void log_rdb_perf_context(const bool &all = true);
|
||||
}
|
||||
|
||||
enum class ircd::db::pos
|
||||
{
|
||||
FRONT = -2, // .front() | first element
|
||||
PREV = -1, // std::prev() | previous element
|
||||
END = 0, // break; | exit iteration (or past the end)
|
||||
NEXT = 1, // continue; | next element
|
||||
BACK = 2, // .back() | last element
|
||||
};
|
||||
|
||||
#include "db/delta.h"
|
||||
#include "db/database.h"
|
||||
#include "db/opts.h"
|
||||
|
@ -121,15 +130,6 @@ namespace ircd
|
|||
using db::database;
|
||||
}
|
||||
|
||||
enum class ircd::db::pos
|
||||
{
|
||||
FRONT = -2, // .front() | first element
|
||||
PREV = -1, // std::prev() | previous element
|
||||
END = 0, // break; | exit iteration (or past the end)
|
||||
NEXT = 1, // continue; | next element
|
||||
BACK = 2, // .back() | last element
|
||||
};
|
||||
|
||||
struct ircd::db::init
|
||||
{
|
||||
init();
|
||||
|
|
Loading…
Reference in a new issue