From 385c51950644121d7b6e04718374b1af63209ac7 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 17 Jan 2015 17:28:02 +0100 Subject: Implemented `Length` function * as its name implies this function returns the length of a given _Cons_ structure * result type is `Size` which wraps `std::size_t` to match the `sizeof` operator --- src/conditional/if.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/conditional') diff --git a/src/conditional/if.h b/src/conditional/if.h index 29aa6f0..b9568f6 100644 --- a/src/conditional/if.h +++ b/src/conditional/if.h @@ -7,13 +7,13 @@ namespace tav { template < bool Condition, - typename IfBranch, - typename ElseBranch + typename TrueBranch, + typename FalseBranch > using If = typename std::conditional< Condition, - IfBranch, - ElseBranch + TrueBranch, + FalseBranch >::type; } -- cgit v1.2.3