[ox/std] Remove oxRequireT and oxRequireMT

(synced from ab5bc1adb6)
This commit is contained in:
2024-10-06 06:16:14 -05:00
parent 9159646448
commit 039d50571f
5 changed files with 33 additions and 37 deletions
+2 -8
View File
@@ -176,14 +176,8 @@ ox::Result<int> f2() noexcept {
```
```oxRequire``` is not quite as versatile, but it should still cleanup a lot of otherwise less ideal code.
```oxRequire``` also has variants for throwing the error and for making to value non-const:
* ```oxRequireM``` - oxRequire Mutable
* ```oxRequireT``` - oxRequire Throw
* ```oxRequireMT``` - oxRequire Mutable Throw
The throw variants of ```oxRequire``` are generally legacy code.
```ox::Result::unwrapThrow``` is generally preferred now.
```oxRequire``` by default creates a const, but there is also an ```oxRequireM``` (oxRequire Mutable)
variant for creating a non-const value.
### Logging and Output