• Home
  • Raw
  • Download

Lines Matching refs:unique_function

20   unique_function<int(int, int)> Sum = [](int A, int B) { return A + B; };  in TEST()
23 unique_function<int(int, int)> Sum2 = std::move(Sum); in TEST()
26 unique_function<int(int, int)> Sum3 = [](int A, int B) { return A + B; }; in TEST()
30 Sum2 = unique_function<int(int, int)>([](int A, int B) { return A + B; }); in TEST()
37 Sum2 = unique_function<int(int, int)>(); in TEST()
41 unique_function<void(int &)> Inc = [](int &X) { ++X; }; in TEST()
48 unique_function<int(std::unique_ptr<int> &&)> ReadAndDeallocByRef = in TEST()
62 unique_function<int(std::unique_ptr<int>)> ReadAndDeallocByVal = in TEST()
78 unique_function<long()> Tmp; in TEST()
80 unique_function<long()> C1 = [A]() { return A; }; in TEST()
85 unique_function<long()> C2 = [A, B]() { return A + B; }; in TEST()
90 unique_function<long()> C3 = [A, B, C]() { return A + B + C; }; in TEST()
95 unique_function<long()> C4 = [A, B, C, D]() { return A + B + C + D; }; in TEST()
100 unique_function<long()> C5 = [A, B, C, D, E]() { return A + B + C + D + E; }; in TEST()
112 unique_function<int(int)> Small = SmallCallable(); in TEST()
114 unique_function<int(int)> Small2 = std::move(Small); in TEST()
126 unique_function<int()> Large = LargeCallable(); in TEST()
128 unique_function<int()> Large2 = std::move(Large); in TEST()
142 unique_function<void(CopyCounter)> ByValF = [](CopyCounter) {}; in TEST()
156 unique_function<void(const CopyCounter &)> ByRefF = [](const CopyCounter &) { in TEST()
175 unique_function<void(const Uncopyable &)> UncopyableF = in TEST()
190 unique_function<void(MoveCounter)> ByValF = [](MoveCounter) {}; in TEST()
203 unique_function<void(MoveCounter &&)> ByRefF = [](MoveCounter &&) {}; in TEST()
221 unique_function<void(const Unmovable &)> UnmovableF = [](const Unmovable &) { in TEST()
230 unique_function<int(int) const> Plus2 = [X(std::make_unique<int>(2))](int Y) { in TEST()
240 unique_function<int(int) const> Plus2A = std::move(Plus2); in TEST()
242 unique_function<int(int) const> Plus2B; in TEST()
247 unique_function<int(int)> Plus2C = std::move(Plus2B); in TEST()
255 unique_function<StringRef()> ChooseMutable = ChooseCorrectOverload(); in TEST()
259 unique_function<StringRef() const> ChooseConst = ChooseCorrectOverload(); in TEST()