文档管理中心

函数功能

获取首个元素的指针地址,[GetData(), reinterpret_cast<T *>(GetData()) + GetSize()]中的数据即为当前容器中保存的数据。

函数原型

收起
自动换行
深色代码主题
复制
  1. const T *GetData() const

参数说明

无

返回值

首个元素的指针地址。

约束说明

无

调用示例

收起
自动换行
深色代码主题
复制
  1. size_t capacity = 100U;
  2. auto cv_holder = ContinuousVector::Create<int64_t>(capacity);
  3. auto cv = reinterpret_cast<TypedContinuousVector *>(cv_holder.get());
  4. auto cap = cv->GetData<int64_t>();
相关推荐
文档Get
文档GetStr
文档GetSize
文档GetString
文档GetAddr
文档GetFormat
文档GetInt
在 指南 中进行搜索
请输入您想要搜索的关键词