We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a551663 commit 1ddc205Copy full SHA for 1ddc205
1 file changed
src/alfred/data_structure/discretization.hpp
@@ -31,7 +31,10 @@ class Mess {
31
template <typename T, typename... V>
32
inline void set(T &x, V... v) { set(x), set(v...); }
33
inline bool exist(_Tp x) { return origin(query(x)) == x; }
34
- inline size_t size(void) noexcept { return v.size(); }
+ inline size_t size(void) noexcept {
35
+ if (!initialized) init();
36
+ return v.size();
37
+ }
38
};
39
40
#endif // AFDS_DISCRETIZATION
0 commit comments