mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-11 18:00:04 +00:00
Add a size argument to Array ctor.
This commit is contained in:
parent
e04b07921f
commit
6cd1563eac
2
format.h
2
format.h
@ -271,7 +271,7 @@ class Array {
|
|||||||
FMT_DISALLOW_COPY_AND_ASSIGN(Array);
|
FMT_DISALLOW_COPY_AND_ASSIGN(Array);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Array() : size_(0), capacity_(SIZE), ptr_(data_) {}
|
explicit Array(std::size_t size = 0) : size_(size), capacity_(SIZE), ptr_(data_) {}
|
||||||
~Array() { free(); }
|
~Array() { free(); }
|
||||||
|
|
||||||
#if FMT_USE_RVALUE_REFERENCES
|
#if FMT_USE_RVALUE_REFERENCES
|
||||||
|
Loading…
Reference in New Issue
Block a user