Switch to unified view
a/src/utils/smallut.h | b/src/utils/smallut.h | ||
---|---|---|---|
... |
... |
||
199 | s = s.insert(0, len - s.length(), '0'); |
199 | s = s.insert(0, len - s.length(), '0'); |
200 | } |
200 | } |
201 | 201 | ||
202 | // Code for static initialization of an stl map. Somewhat like Boost.assign. |
202 | // Code for static initialization of an stl map. Somewhat like Boost.assign. |
203 | // Ref: http://stackoverflow.com/questions/138600/initializing-a-static-stdmapint-int-in-c |
203 | // Ref: http://stackoverflow.com/questions/138600/initializing-a-static-stdmapint-int-in-c |
204 | // Example use: map<int, int> m = create_map (1,2) (3,4) (5,6) (7,8); |
204 | // Example use: map<int, int> m = create_map<int, int> (1,2) (3,4) (5,6) (7,8);
|
205 | 205 | ||
206 | template <typename T, typename U> |
206 | template <typename T, typename U> |
207 | class create_map |
207 | class create_map |
208 | { |
208 | { |
209 | private: |
209 | private: |