mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Document ArgList.
This commit is contained in:
6
format.h
6
format.h
@ -995,8 +995,14 @@ public:
|
|||||||
ArgList(const internal::ArgInfo *args, std::size_t size)
|
ArgList(const internal::ArgInfo *args, std::size_t size)
|
||||||
: args_(args), size_(size) {}
|
: args_(args), size_(size) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns the list size (the number of arguments).
|
||||||
|
*/
|
||||||
std::size_t size() const { return size_; }
|
std::size_t size() const { return size_; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns the argument at specified index.
|
||||||
|
*/
|
||||||
const internal::ArgInfo &operator[](std::size_t index) const {
|
const internal::ArgInfo &operator[](std::size_t index) const {
|
||||||
return args_[index];
|
return args_[index];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user