mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-08 07:28:09 +01:00
Squashed 'externals/mp/' changes from 29cb5588d..649fde1e8
649fde1e8 typelist: Add drop 5efe868da travis: Drop GCC 7 from CI c3f890f17 Update to use new metavalue types c4dd1c9b9 metavalue: Add some common operations 7da45c71b Remove unnecessary public keyword for struct inheritance 287d8e7ec Correct typos in file headers git-subtree-dir: externals/mp git-subtree-split: 649fde1e814f9ce5b04d7ddeb940244d9f63cb2f
This commit is contained in:
parent
7b0c47d3f0
commit
1925d4dcc6
22 changed files with 460 additions and 24 deletions
26
README.md
26
README.md
|
|
@ -53,14 +53,15 @@ A metavalue is a type of template `std::integral_constant`.
|
|||
|
||||
### Constants
|
||||
|
||||
* [`std::true_type`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* [`std::false_type`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* mp::true_type: Aliases to [`std::true_type`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* mp::false_type: Aliases to [`mp::false_type`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
|
||||
### Constructor
|
||||
|
||||
* [`std::integral_constant`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* [`std::bool_constant`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* `mp::lift_value`: Lifts a value to become a metavalue
|
||||
* mp::value: Aliases to [`std::integral_constant`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* mp::bool_value: Aliases to [`std::bool_constant`](https://en.cppreference.com/w/cpp/types/integral_constant)
|
||||
* mp::size_value: Constructs a metavalue with value of type std::size_t
|
||||
* `mp::lift_value`: Lifts a value of any arbitrary type to become a metavalue
|
||||
|
||||
### Conversions
|
||||
|
||||
|
|
@ -69,9 +70,18 @@ A metavalue is a type of template `std::integral_constant`.
|
|||
### Operations
|
||||
|
||||
* `mp::value_equal`: Compares value equality, ignores type. Use `std::is_same` for strict comparison.
|
||||
* [`std::negation`](https://en.cppreference.com/w/cpp/types/negation)
|
||||
* [`std::conjunction`](https://en.cppreference.com/w/cpp/types/conjunction)
|
||||
* [`std::disjunction`](https://en.cppreference.com/w/cpp/types/disjunction)
|
||||
* `mp::logic_if`: Like std::conditional but has a bool metavalue as first argument.
|
||||
* `mp::bit_not`: Bitwise not
|
||||
* `mp::bit_and`: Bitwise and
|
||||
* `mp::bit_or`: Bitwise or
|
||||
* `mp::bit_xor`: Bitwise xor
|
||||
* `mp::logic_not`: Logical not
|
||||
* `mp::logic_and`: Logical conjunction (no short circuiting, always results in a mp:bool_value)
|
||||
* `mp::logic_or`: Logical disjunction (no short circuiting, always results in a mp:bool_value)
|
||||
* `mp::conjunction`: Logical conjunction (with short circuiting, preserves type)
|
||||
* `mp::disjunction`: Logical disjunction (with short circuiting, preserves type)
|
||||
* `mp::sum`: Sum of values
|
||||
* `mp::product`: Product of values
|
||||
|
||||
`metafunction`
|
||||
--------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue