CO
coveooss/lazy
C++14 associative containers that perform lazy sorting
coveo::lazy

A C++14 library of associative containers, like std::set, that perform lazy sorting.
TL;DR
#include <coveo/lazy/map.h>
#include <iostream>
#include <string>
int main()
{
// Same API as std::map, except that...
coveo::lazy::map<int, std::string> m;
// ...insert/emplace return void
m.emplace(42, "Life");
m.emplace(23, "Hangar");
m.emplace(66, "Route");
for (auto&& elem : m) {
std::cout << "(" elem.first << ", " << elem.second << ") ";
}
std::cout << std::endl;
// Prints:
// (23, Hangar) (42, Life) (66, Route)
return 0;
}Installing
The library is header-only. Therefore, to add it to your project, simply copy the content of the lib directory to a suitable place in your structure and add that path to your include paths. Look at the test project/makefile for examples.
Compiler support
coveo::lazy requires a C++ compiler that is fairly up-to-date with the C++11/14 standard. It has been successfully tested with the following compilers; YMMV.
- Microsoft Visual Studio 2015 Update 3
- GCC 5.3.1
- Clang 3.8.0
MOAR?
Read further documentation and get API reference here: https://coveo.github.io/lazy
License
Licensed under the Apache License, Version 2.0.
On this page
Languages
C++99.6%Makefile0.3%Batchfile0.0%
Contributors
Latest Release
v1.0September 10, 2017Other
Created August 19, 2016
Updated January 28, 2023