Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalbersma committed May 21, 2018
0 parents commit 0f27891
Show file tree
Hide file tree
Showing 19 changed files with 3,871 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
image:
- Visual Studio 2017

environment:
matrix:
- generator: "Visual Studio 15 2017"
BOOST_ROOT: C:/Libraries/boost_1_66_0
BOOST_LIBRARYDIR: C:/Libraries/boost_1_66_0/lib32-msvc-14.1
PATH: "%BOOST_LIBRARYDIR%;%PATH%"

- generator: "Visual Studio 15 2017 Win64"
BOOST_ROOT: C:/Libraries/boost_1_66_0
BOOST_LIBRARYDIR: C:/Libraries/boost_1_66_0/lib64-msvc-14.1
PATH: "%BOOST_LIBRARYDIR%;%PATH%"

configuration:
- Debug
- Release

before_build:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
mkdir build
cd build
cmake .. -G "%generator%"
build_script:
- cmd: >-
cmake --build .
test_script:
- cmd: >-
ctest
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/build/
/.cproject
/.project
/.settings
/.vscode/
*.info
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: cpp
os: linux
dist: trusty
sudo: false

matrix:
include:
- env: CXX_COMPILER=clang++-6.0 CXX=g++-7
addons: { apt: { packages: ["clang-6.0", "g++-7", "libboost-test-dev"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-6.0"] } }

- env: CXX_COMPILER=clang++-7 CXX=g++-7
addons: { apt: { packages: ["clang-7", "g++-7", "libboost-test-dev"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty"] } }

- env: CXX_COMPILER=g++-7
addons: { apt: { packages: ["g++-7", "libboost-test-dev"], sources: ["ubuntu-toolchain-r-test"] } }

- env: CXX_COMPILER=g++-8
addons: { apt: { packages: ["g++-8", "libboost-test-dev"], sources: ["ubuntu-toolchain-r-test"] } }

before_script:
- |
cd ${TRAVIS_BUILD_DIR}
mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=${CXX_COMPILER}
script:
- |
cmake --build .
ctest
after_success:
- |
if [[ "${CXX_COMPILER}" == "g++-7" ]]; then
bash <(curl -s https://codecov.io/bash)
fi
notifications:
email: false
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.9)
project(int_set CXX)

set(project_include_dir
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>
)

add_library(int_set INTERFACE)
target_include_directories(int_set INTERFACE ${project_include_dir})
target_compile_features(int_set INTERFACE cxx_std_17)

include(CTest)
add_subdirectory(test)
23 changes: 23 additions & 0 deletions LICENSE_1_0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[![Language](https://img.shields.io/badge/language-C++-blue.svg)](https://isocpp.org/)
[![Standard](https://img.shields.io/badge/c%2B%2B-17-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization)
[![License](https://img.shields.io/badge/license-Boost-blue.svg)](https://opensource.org/licenses/BSL-1.0)
[![](https://tokei.rs/b1/github/rhalbersma/int_set)](https://github.com/rhalbersma/int_set)

Rebooting the `std::bitset` franchise
-------------------------------------

An `int_set<N>` is a modern reimagining of `std::bitset<N>`, keeping what time has proven to be effective, and throwing out what is not. `int_set`s are array-backed sets of integers that are compact and fast: they do less (i.e. they don't do bounds-checking, and they don't throw exceptions) and offer more (e.g. iterators to seamlessly interact with the rest of the Standard Library). This enables you to do your bit-twiddling with familiar syntax, typically leading to cleaner, more expressive code.

Requirements
------------

These header-only libraries are continuously being tested with the following conforming [C++17](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf) compilers:

| Platform | Compiler | Versions | Build |
| :------- | :------- | :------- | :---- |
| Linux | Clang <br> GCC | 6.0, 7-SVN<br> 7.3, 8.1 | [![codecov](https://codecov.io/gh/rhalbersma/int_set/branch/master/graph/badge.svg)](https://codecov.io/gh/rhalbersma/int_set) <br> [![Build Status](https://travis-ci.org/rhalbersma/int_set.svg)](https://travis-ci.org/rhalbersma/int_set) |
| Windows | Visual Studio | 15.7 | [![Build status](https://ci.appveyor.com/api/projects/status/pn0u2i8mcfp4d9un?svg=true)](https://ci.appveyor.com/project/rhalbersma/int-set) |

License
-------

Copyright Rein Halbersma 2014-2018.
Distributed under the [Boost Software License, Version 1.0](http://www.boost.org/users/license.html).
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Loading

0 comments on commit 0f27891

Please sign in to comment.