MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / Capacity

Function Capacity

include/sonic/dom/genericnode.h:827–830  ·  view source on GitHub ↗

Array APIs * @brief Get array capacity. * @return size_t * @note If NodeType doesn't support, this function will return Size() */

Source from the content-addressed store, hash-verified

825 * @note If NodeType doesn't support, this function will return Size()
826 */
827 size_t Capacity() const noexcept {
828 sonic_assert(this->IsContainer());
829 return downCast()->capacityImpl();
830 }
831
832 /**
833 * @brief Get array =begin iterator

Callers 1

ReserveMethod · 0.85

Calls 3

downCastFunction · 0.85
IsContainerMethod · 0.80
capacityImplMethod · 0.80

Tested by

no test coverage detected