diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -8,6 +8,25 @@ Modules include, a `core` library containing algorithms and containers for C++20 These libraries were built on top of the Boost C++ libraries and C++ SL. +## Using OCL: + +This is taken from the FIX module, and will be used here as an example of usage of the OCL. + +```cpp +int main(int argc, char** argv) +{ + ocl::fix::visitor basic_visitor; + ocl::fix::range_buffer fix = basic_visitor.visit(default_fix); + + ocl::io::enable_stdio_sync(false); + + ocl::io::print(":key=35\n"); + ocl::io::print(":value=", fix["35"], "\n"); +} +``` + +The OCL are mostly headers only (except OCL.FIX as of 2026), so no compilation step is needed. And is C++17 or later. + ## Community: Join us in our [Discord](https://discord.gg/uD76Qweght) we're quite active and open for contributors! |
