blob: 46eff56ec8a4afbfaba6a0772af44a944490e771 [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_TEMPLATES_STRUCT_FIELDS_STRUCT_FIELDS_H_
#define CRUBIT_RS_BINDINGS_FROM_CC_TEST_TEMPLATES_STRUCT_FIELDS_STRUCT_FIELDS_H_
#pragma clang lifetime_elision
template <typename T>
class MyTemplate {
public:
explicit MyTemplate(T value) : value_(value) {}
const T& value() const { return value_; }
private:
T value_;
};
struct MyStruct {
MyStruct(int i) : public_field(i) {}
MyTemplate<int> public_field;
};
#endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_TEMPLATES_STRUCT_FIELDS_STRUCT_FIELDS_H_