MCPcopy Create free account
hub / github.com/boost-ext/te / SquareNoncopyable

Class SquareNoncopyable

test/te.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169};
170
171struct SquareNoncopyable {
172 SquareNoncopyable() = default;
173 SquareNoncopyable(const SquareNoncopyable &) = delete;
174 SquareNoncopyable &operator=(const SquareNoncopyable &) = delete;
175 SquareNoncopyable(SquareNoncopyable &&) = default;
176 SquareNoncopyable &operator=(SquareNoncopyable &&) = default;
177 ~SquareNoncopyable() noexcept = default;
178
179 void draw(std::ostream &out) const { out << "Square"; }
180};
181
182struct TriangleCopyable {
183 void draw(std::ostream &out) const { out << "Triangle"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected