Home
last modified time | relevance | path

Searched refs:CaptureProxy (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DSyncAPI.cpp28 template <typename T> struct CaptureProxy { struct
29 CaptureProxy(llvm::Optional<T> &Target) : Target(&Target) { in CaptureProxy() argument
33 CaptureProxy(const CaptureProxy &) = delete;
34 CaptureProxy &operator=(const CaptureProxy &) = delete;
36 CaptureProxy(CaptureProxy &&Other) : Target(Other.Target) { in CaptureProxy() function
39 CaptureProxy &operator=(CaptureProxy &&) = delete;
49 ~CaptureProxy() { in ~CaptureProxy() argument
66 template <typename T> CaptureProxy<T> capture(llvm::Optional<T> &Target) { in capture()
67 return CaptureProxy<T>(Target); in capture()