proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
delete_special_members.hpp
Go to the documentation of this file.
1#ifndef VEG_DELETE_SPECIAL_MEMBERS_HPP_2HKRCVWUS
2#define VEG_DELETE_SPECIAL_MEMBERS_HPP_2HKRCVWUS
3
6
7namespace proxsuite {
8namespace linalg {
9namespace veg {
10namespace _detail {
12{
13 NoDefaultCtor() = delete;
14};
16{
17 NoMoveAssign() = default;
18 ~NoMoveAssign() = default;
19 NoMoveAssign(NoMoveAssign const&) = default;
21 auto operator=(NoMoveAssign const&) -> NoMoveAssign& = default;
22 auto operator=(NoMoveAssign&&) -> NoMoveAssign& = delete;
23};
25{
26 NoCopyAssign() = default;
27 ~NoCopyAssign() = default;
28 NoCopyAssign(NoCopyAssign const&) = default;
30 auto operator=(NoCopyAssign const&) -> NoCopyAssign& = delete;
31 auto operator=(NoCopyAssign&&) -> NoCopyAssign& = default;
32};
34{
35 NoMoveCtor() = default;
36 ~NoMoveCtor() = default;
37 NoMoveCtor(NoMoveCtor const&) = default;
39 auto operator=(NoMoveCtor const&) -> NoMoveCtor& = default;
40 auto operator=(NoMoveCtor&&) -> NoMoveCtor& = default;
41};
43{
44 NoCopyCtor() = default;
45 ~NoCopyCtor() = default;
46 NoCopyCtor(NoCopyCtor const&) = delete;
47 NoCopyCtor(NoCopyCtor&&) = default;
48 auto operator=(NoCopyCtor const&) -> NoCopyCtor& = default;
49 auto operator=(NoCopyCtor&&) -> NoCopyCtor& = default;
50};
51
52struct NoMove
53{
54 NoMove() = default;
55 ~NoMove() = default;
56 NoMove(NoMove const&) = default;
57 NoMove(NoMove&&) = delete;
58 auto operator=(NoMove const&) -> NoMove& = default;
59 auto operator=(NoMove&&) -> NoMove& = delete;
60};
61struct NoCopy
62{
63 NoCopy() = default;
64 ~NoCopy() = default;
65 NoCopy(NoCopy const&) = delete;
66 NoCopy(NoCopy&&) = default;
67 auto operator=(NoCopy const&) -> NoCopy& = delete;
68 auto operator=(NoCopy&&) -> NoCopy& = default;
69};
70
71} // namespace _detail
72} // namespace veg
73} // namespace linalg
74} // namespace proxsuite
75
77#endif /* end of include guard VEG_DELETE_SPECIAL_MEMBERS_HPP_2HKRCVWUS */
auto operator=(NoCopyAssign const &) -> NoCopyAssign &=delete
NoCopyAssign(NoCopyAssign const &)=default
auto operator=(NoCopyAssign &&) -> NoCopyAssign &=default
NoCopyCtor(NoCopyCtor const &)=delete
auto operator=(NoCopyCtor &&) -> NoCopyCtor &=default
auto operator=(NoCopyCtor const &) -> NoCopyCtor &=default
auto operator=(NoCopy &&) -> NoCopy &=default
auto operator=(NoCopy const &) -> NoCopy &=delete
NoMoveAssign(NoMoveAssign const &)=default
auto operator=(NoMoveAssign &&) -> NoMoveAssign &=delete
auto operator=(NoMoveAssign const &) -> NoMoveAssign &=default
auto operator=(NoMoveCtor const &) -> NoMoveCtor &=default
auto operator=(NoMoveCtor &&) -> NoMoveCtor &=default
NoMoveCtor(NoMoveCtor const &)=default
auto operator=(NoMove &&) -> NoMove &=delete
auto operator=(NoMove const &) -> NoMove &=default