image: add value_type typedef
This commit is contained in:
parent
1290cde443
commit
9619b5fee9
@ -30,6 +30,8 @@ namespace util {
|
|||||||
namespace image {
|
namespace image {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct buffer {
|
struct buffer {
|
||||||
|
typedef T value_type;
|
||||||
|
|
||||||
buffer (size_t w, size_t h);
|
buffer (size_t w, size_t h);
|
||||||
buffer (size_t w, size_t h, size_t s);
|
buffer (size_t w, size_t h, size_t s);
|
||||||
buffer (size_t w, size_t h, size_t s, std::unique_ptr<T[]> &&data);
|
buffer (size_t w, size_t h, size_t s, std::unique_ptr<T[]> &&data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user