Giter Site home page Giter Site logo

btl's Introduction

Basic Template Library

About

This is colection of packages:

  • btl:autoptr: smart pointers like c++ std::shared_ptr, std::weak_ptr, std::enable_shared_from_this and more.
    • SharedPtr reference counted pointer with support for aliasing and optional weak pointer support.
    • RcPtr reference counted pointer with limited support for aliasing (but small size and lock free manipulation of pointer) and optional weak pointer support.
    • IntrusivePtr reference counted pointer with reference counting inside of managed object with limited support for aliasing (but small size and lock free manipulation of pointer) and optional weak pointer support.
    • UniquePtr non copyable owning pointer that owns and manages object through a pointer and disposes of that object when goes out of scope.
    • GlobalPtr (beta) non-owning pointer GlobalPtr to global data (static, gc, ...).
  • btl:string mutable string with small string optimization like c++ std::basic_string and std::string
    • BasicString Generalization of struct string with optional small string optimization for min N characters of type char, wchar and dchar.
    • SmallString Generalization of struct string with small string optimization for min N characters of type char, wchar and dchar.
    • LargeString Generalization of struct string without small string optimization for characters of type char, wchar and dchar.
    • FixedString Generalization of struct string with max N characters of type char, wchar and dchar.
    • String alias to BasicString!char.
  • btl:vector dynamic array like c++ std::vector and folly::small_vector
    • Vector sequence container with growable capacity.
    • SmallVector sequence container with growable capacity that implements small buffer optimization for N elements.
    • FixedVector sequence container with max N elements.
  • btl:list (beta) linked list like c++ std::list and std::forward_list
    • List sequence container - bidirectional linked list.
    • ForwardList sequence container - single linked list.

Documentation

Code

Package

History

This repository was in past divided into 3 repositories: autoptr, small-vector and basic-string but they shared many internal parts so I unite them under one.

btl's People

Contributors

submada avatar

Stargazers

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

Watchers

 avatar

Forkers

parhelia512

btl's Issues

Dub bug

The "unittest" configuration is built by default. Because of this, when exiting main, assert from btl is triggered

btl:autoptr 1.0.0-rc.4: target for configuration "unittest" is up to date.
btl:string 1.0.0-rc.4: target for configuration "unittest" is up to date. 
btl:vector 1.0.0-rc.4: target for configuration "unittest" is up to date 

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.