mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-06 23:30:29 +00:00
Document ArgList.
This commit is contained in:
parent
ba70b30d7e
commit
90e6faffa0
6
format.h
6
format.h
@ -995,8 +995,14 @@ public:
|
||||
ArgList(const internal::ArgInfo *args, std::size_t size)
|
||||
: args_(args), size_(size) {}
|
||||
|
||||
/**
|
||||
Returns the list size (the number of arguments).
|
||||
*/
|
||||
std::size_t size() const { return size_; }
|
||||
|
||||
/**
|
||||
Returns the argument at specified index.
|
||||
*/
|
||||
const internal::ArgInfo &operator[](std::size_t index) const {
|
||||
return args_[index];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user