This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
set(datasets) | |
add_dataset(datasets hetero make hana string1 hana.string.cpp.erb 4 "(0..50).step(10).to_a + (100..300).step(50).to_a" "which\;1") | |
add_dataset(datasets hetero make hana string2 hana.string.cpp.erb 4 "(0..50).step(10).to_a + (100..300).step(50).to_a" "which\;2") | |
add_chart(hetero make DATASETS ${datasets}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 4d6f53adf9ddb41ae6b477a39b8b609159c74cf2 | |
Author: Louis Dionne <ldionne.2@gmail.com> | |
Date: Tue May 24 15:36:02 2016 -0700 | |
[array] Implement P0107 improving the support for constexpr in std::array | |
diff --git a/include/array b/include/array | |
index 719286d..28d093d 100644 | |
--- a/include/array | |
+++ b/include/array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
cmake_minimum_required(VERSION 3.2) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | |
include(metabench) | |
set(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Louis Dionne 2016 | |
# Distributed under the Boost Software License, Version 1.0. | |
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
cmake_minimum_required(VERSION 3.2) | |
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | |
include(metabench) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Metabench</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright Louis Dionne 2013-2016 | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
template <char ...s> | |
static auto string_maker = [] { | |
struct local { char data[sizeof...(s)] = {s...}; }; | |
return local{}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note: This original idea was shown to me by Eric Fiselier. All credits where due. | |
#include <type_traits> | |
template <typename Condition, typename T = void> | |
struct enable_if | |
: std::enable_if<Condition::value, T> | |
{ }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <array> | |
#include <cassert> | |
#include <experimental/string_view> | |
#include <functional> | |
#include <initializer_list> | |
#include <iterator> | |
#include <utility> | |