0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd::buffer: Add buffer_base::empty() for boost::spirit conceptual compliance.

This commit is contained in:
Jason Volk 2018-07-01 19:20:00 -07:00
parent a96f2ae030
commit ac4ed03142

View file

@ -32,6 +32,9 @@ struct ircd::buffer::buffer
auto &operator[](const size_t &i) const;
auto &operator[](const size_t &i);
// For boost::spirit conceptual compliance.
auto empty() const { return ircd::buffer::empty(*this); }
buffer(const it &start, const it &stop);
buffer(const it &start, const size_t &size);
buffer();