Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or 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
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 |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.8) | |
project(untitled) | |
set(CMAKE_CXX_STANDARD 14) | |
set(SOURCE_FILES main.cpp) | |
add_executable(untitled ${SOURCE_FILES}) | |
target_link_libraries(untitled pthread) |
This file contains hidden or 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 <cstddef> | |
#include <type_traits> | |
#include <cstring> | |
namespace playground | |
{ | |
template<typename T> | |
struct count_indirections | |
{ | |
static constexpr std::size_t value = 0; |
This file contains hidden or 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
#define EPSILON 0.001 | |
#include <utility> | |
#include <bitset> | |
#include <cassert> | |
#include <iostream> | |
template <std::size_t dimensions> | |
using quadrant = std::bitset<dimensions>; | |
template <typename T> |
This file contains hidden or 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 <string> | |
#include <fstream> | |
#include <vector> | |
#include <utility> | |
#include <cctype> | |
#include <iterator> | |
struct parse_result | |
{ | |
std::vector<std::string> text; |
This file contains hidden or 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
#ifndef TYPELIST_H | |
#define TYPELIST_H | |
#include <utility> | |
#include <cassert> | |
#include <cstddef> | |
#include <tuple> | |
template <class ... Types> | |
class type_list {}; |
This file contains hidden or 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
#pragma once | |
#include <numeric> | |
namespace impl_details | |
{ | |
template <typename T, typename UnaryAdvanceOp> | |
class proxy | |
{ | |
T value; |
This file contains hidden or 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
#pragma once | |
#include <vector> | |
template<typename T> | |
struct SimpleDestructableTrivialy | |
{ | |
static constexpr bool value = std::is_trivially_destructible<T>::value; | |
}; | |
template<typename T, bool = SimpleDestructableTrivialy<T>::value> | |
class SimpleDestroy |
NewerOlder