Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ TTS is thus suitable for numerical-heavy testing.

# A Short Example

[See it live on Compiler Explorer](https://godbolt.org/z/cM5sxMxjo)
[See it live on Compiler Explorer](https://godbolt.org/z/KTrGW437T)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++
#define TTS_MAIN
#include <tts/tts.hpp>
#include <stdexcept>

TTS_CASE( "Check expectations" )
{
Expand Down
6 changes: 4 additions & 2 deletions doc/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
Those features make **TTS** suitable for numerical-heavy testing.

# Supported Compilers
+ g++ 10.3 and superior
+ clang 12 and superior
+ g++ 11.1 and superior
+ clang 13 and superior
+ Visual Studio 17 2022 v19.30.30709.0
+ clang-CL 15.0.1 or superior
+ emscripten 3.1.14

# A Short Example

@code
#define TTS_MAIN // No need for main()
#include <tts/tts.hpp>
#include <stdexcept>

TTS_CASE( "Check expectations" )
{
Expand Down
8 changes: 4 additions & 4 deletions include/tts/tools/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace tts
/** @brief Generate the Cartesian product of two type lists

Given two types lists L1 and L2, generate a new types list containing all possible
combinations of types from L1 and L2 as a types<T1,T2> where T1 is from L1 and T2 is from L2.
combinations of types from L1 and L2 as a types<T1,T2> where T1 is from L1 and T2 is from L2.

@tparam L1 First types list
@tparam L2 Second types list
Expand All @@ -80,15 +80,15 @@ namespace tts
/** @brief Filter a types list by a predicate

Using an unary predicate template, filter a types list to only keep the types for which the
predicate evaluates to true.
predicate evaluates to true.

@tparam Pred Predicate template taking a single type parameter and exposing a static boolean
member `value`
member `value`
@tparam Type Types list to filter

@groupheader{Example}
@snippet doc/filter.cpp snippet
**/
**/
//====================================================================================================================
template<template<typename> typename Pred, typename Type> struct filter
{
Expand Down