Coder Social home page Coder Social logo

coveooss / lazy Goto Github PK

View Code? Open in Web Editor NEW
4.0 27.0 1.0 435 KB

C++14 associative containers that perform lazy sorting

Home Page: https://coveo.github.io/lazy

License: Other

Makefile 0.33% C++ 99.64% Batchfile 0.03%
cplusplus cplusplus-11 cplusplus-14 apache2-license

lazy's Introduction

coveo::lazy Build Status Build status Build status GitHub license

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.

lazy's People

Contributors

clechasseur avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

clechasseur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.