FlexClass## FlexClass Classes with dynamic size for everyone "C++ Flexible Array Members" Breno Guimarães brenorg@gmail.com Twitter @brenorg ## std::make_shared(n) Control Block std::shared manipulating bytes? // This was supposed to be modern C++ ## FlexClass ## A tool in the shed #include <flexclass.hpp> templatestruct Block int size; int ref_cnt; fc::AdjacentArray flexclass.hpp> ## Features #include <flexclass.hpp> struct Foo • Non-trivial types auto fc_handles() { return fc::make_tuple(&h1std::advance(begin, block->size); 0 码力 | 8 页 | 957.56 KB | 1 年前3
共 1 条
- 1













