LLVM: llvm::ArrayRecycler< T, Align >::Capacity Class Reference (original) (raw)
The size of an allocated array is represented by a Capacity instance. More...
#include "[llvm/Support/ArrayRecycler.h](ArrayRecycler%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| Capacity () | |
| size_t | getSize () const |
| Get the number of elements in an array with this capacity. | |
| unsigned | getBucket () const |
| Get the bucket number for this capacity. | |
| Capacity | getNext () const |
| Get the next larger capacity. |
| Static Public Member Functions | |
|---|---|
| static Capacity | get (size_t N) |
| Get the capacity of an array that can hold at least N elements. |
template<class T, size_t Align = alignof(T)>
class llvm::ArrayRecycler< T, Align >::Capacity
The size of an allocated array is represented by a Capacity instance.
This class is much smaller than a size_t, and it provides methods to work with the set of legal array capacities.
Definition at line 71 of file ArrayRecycler.h.
template<class T, size_t Align = alignof(T)>
◆ get()
template<class T, size_t Align = alignof(T)>
◆ getBucket()
template<class T, size_t Align = alignof(T)>
Get the bucket number for this capacity.
Definition at line 87 of file ArrayRecycler.h.
◆ getNext()
template<class T, size_t Align = alignof(T)>
◆ getSize()
template<class T, size_t Align = alignof(T)>
The documentation for this class was generated from the following file:
- include/llvm/Support/ArrayRecycler.h