summaryrefslogtreecommitdiffstats
path: root/tests/cxx/ctad-i1.h
blob: defd3f0dfaab9ed5c195c82b17488ca958f337e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===--- ctad-i1.h - test input file for iwyu -----------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

template <class Func>
struct Deduced {
  Deduced(Func&& deferred) : deferred(deferred) {
  }

  ~Deduced() {
    deferred();
  }

  Func deferred;
};