Advanced blending

This commit is contained in:
Jakub Melka
2021-01-23 19:03:12 +01:00
parent ea62e6ee32
commit 443c656a46
6 changed files with 442 additions and 0 deletions

View File

@ -509,6 +509,8 @@ public:
using value_ptr = value_type*;
using const_value_type = const value_type;
using const_value_ptr = const_value_type*;
using value_ref = value_type&;
using const_value_ref = const value_ref;
explicit inline PDFBuffer() :
m_begin(nullptr),
@ -533,6 +535,9 @@ public:
inline const_value_ptr cbegin() const { return m_begin; }
inline const_value_ptr cend() const { return m_end; }
inline value_ref operator[](size_t index) { return *(m_begin + index); }
inline const_value_ref operator[](size_t index) const { return *(m_begin + index); }
size_t size() const { return m_end - m_begin; }
private: