0
0
Fork 0
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:
Jason Volk 2017-09-08 02:04:21 -07:00
parent 5f25d90fd2
commit 3ef01bad59

View file

@ -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();