diff options
author | Adrian Kummerlaender | 2015-01-17 17:28:02 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-01-17 17:28:02 +0100 |
commit | 385c51950644121d7b6e04718374b1af63209ac7 (patch) | |
tree | 4d386aadebbb4b1e28ac835f4e5e6736c05ed5dd /src/conditional | |
parent | d975c2365730644a7eb15b88e02ec0e92b1fe7b1 (diff) | |
download | TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar.gz TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar.bz2 TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar.lz TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar.xz TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.tar.zst TypeAsValue-385c51950644121d7b6e04718374b1af63209ac7.zip |
Implemented `Length` function
* as its name implies this function returns the length of a given _Cons_ structure
* result type is `Size<Length>` which wraps `std::size_t` to match the `sizeof` operator
Diffstat (limited to 'src/conditional')
-rw-r--r-- | src/conditional/if.h | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |