• Home
  • Raw
  • Download

Lines Matching full:c

2  * Copyright (c) 2021 Huawei Device Co., Ltd.
67 template <typename C>
68 auto LazyFetch(C &c) in LazyFetch() argument
70 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
78 template <typename C>
79 auto LazyFetch(const C &c) in LazyFetch() argument
81 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
89 template <typename C>
90 auto ConstLazyFetch(const C &c) in ConstLazyFetch() argument
92 …return [cend = c.cend(), it = c.cbegin()]() mutable -> std::optional<std::decay_t<decltype(*(c.cbe… in ConstLazyFetch()
100 template <typename C>
101 auto RefLazyFetch(C &c) in RefLazyFetch() argument
103 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<decltype(std::ref(*(c.begin())))… in RefLazyFetch()
111 template <typename C>
112 auto RefConstLazyFetch(const C &c) in RefConstLazyFetch() argument
114 …return [cend = c.cend(), it = c.cbegin()]() mutable -> std::optional<decltype(std::cref(*(c.cbegin… in RefConstLazyFetch()
152 template <typename C>
153 auto IndicesOf(const C &c) in IndicesOf() argument
156 size_t to = c.size(); in IndicesOf()
269 template <typename C, typename S>
270 C ContainerOf(S stream, typename std::decay<decltype(
271 (*static_cast<C *>(nullptr))
276 C c; variable
278 c.push_back(*val);
280 return c;
283 template <typename C, typename S>
284 C ContainerOf(
287 (*static_cast<C *>(nullptr))
292 C c; variable
294 c.insert(*val);
296 return c;