Lines Matching full:c
2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
66 template <typename C>
67 auto LazyFetch(C &c) in LazyFetch() argument
69 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
77 template <typename C>
78 auto LazyFetch(const C &c) in LazyFetch() argument
80 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
88 template <typename C>
89 auto ConstLazyFetch(const C &c) in ConstLazyFetch() argument
91 …return [cend = c.cend(), it = c.cbegin()]() mutable -> std::optional<std::decay_t<decltype(*(c.cbe… in ConstLazyFetch()
99 template <typename C>
100 auto RefLazyFetch(C &c) in RefLazyFetch() argument
102 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<decltype(std::ref(*(c.begin())))… in RefLazyFetch()
110 template <typename C>
111 auto RefConstLazyFetch(const C &c) in RefConstLazyFetch() argument
113 …return [cend = c.cend(), it = c.cbegin()]() mutable -> std::optional<decltype(std::cref(*(c.cbegin… in RefConstLazyFetch()
151 template <typename C>
152 auto IndicesOf(const C &c) in IndicesOf() argument
155 size_t to = c.size(); in IndicesOf()
262 template <typename C, typename S>
263 C ContainerOf(S stream, typename std::decay<decltype(
264 (*static_cast<C *>(nullptr))
269 C c; variable
271 c.push_back(*val);
273 return c;
276 template <typename C, typename S>
277 C ContainerOf(
280 (*static_cast<C *>(nullptr))
285 C c; variable
287 c.insert(*val);
289 return c;