DGtal 1.3.0
Loading...
Searching...
No Matches
CBackInsertable.h
1
17#pragma once
18
31#if defined(CBackInsertable_RECURSES)
32#error Recursive header files inclusion detected in CBackInsertable.h
33#else // defined(CBackInsertable_RECURSES)
35#define CBackInsertable_RECURSES
36
37#if !defined CBackInsertable_h
39#define CBackInsertable_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
46
47namespace DGtal
48{
49
50 namespace concepts
51 {
52
54 // class CBackInsertable
94 template <typename T>
96 {
97 // ----------------------- Concept checks ------------------------------
98 public:
99 typedef typename T::value_type value_type;
101 {
102 myX.push_back( myV );
104 }
106 {
107 }
108 // ------------------------- Private Datas --------------------------------
109 private:
110 T myX; // do not require T to be default constructible.
112
113 // ------------------------- Internals ------------------------------------
114 private:
115
116 }; // end of concept CBackInsertable
117
118 } // namespace concepts
119
120} // namespace DGtal
121
122// //
124
125#endif // !defined CBackInsertable_h
126
127#undef CBackInsertable_RECURSES
128#endif // else defined(CBackInsertable_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Represents types for which a std::back_insert_iterator can be constructed with std::back_inserte...