From 59f56b54744db309981065ccb63bbe68aff4f4ff Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 2 Jan 2021 09:14:44 +0100 Subject: Almost internal: Swapped toRaw(), fromRaw() template arguments in containers. --- docs/cdeq_api.md | 6 +++--- docs/clist_api.md | 6 +++--- docs/cmap_api.md | 8 ++++---- docs/cvec_api.md | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'docs') diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md index eebdd155..6ff3bb64 100644 --- a/docs/cdeq_api.md +++ b/docs/cdeq_api.md @@ -10,8 +10,8 @@ See [std::deque](https://en.cppreference.com/w/cpp/container/deque) for correspo #define using_cdeq(X, Value, valueCompareRaw=c_default_compare, valueDestroy=c_default_del, RawValue=Value, - valueToRaw=c_default_to_raw, - valueFromRaw=c_default_from_raw) + valueFromRaw=c_default_from_raw, + valueToRaw=c_default_to_raw) #define using_cdeq_str() ``` The macro `using_cdeq()` can be instantiated with 2, 3, 4, or 7 arguments in the global scope. @@ -21,7 +21,7 @@ be replaced by `my` in all of the following documentation. `using_cdeq_str()` is a shorthand for: ``` -using_cdeq(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_to_raw, cstr_from) +using_cdeq(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_from, cstr_to_raw) ``` ## Types diff --git a/docs/clist_api.md b/docs/clist_api.md index b49e164c..7fe15c09 100644 --- a/docs/clist_api.md +++ b/docs/clist_api.md @@ -12,8 +12,8 @@ is only one pointer, and length of the list is not stored. The method *clist_X_s #define using_clist(X, Value, valueCompareRaw=c_default_compare, valueDestroy=c_default_del, RawValue=Value, - valueToRaw=c_default_to_raw, - valueFromRaw=c_default_from_raw) + valueFromRaw=c_default_from_raw, + valueToRaw=c_default_to_raw) #define using_clist_str() ``` The macro `using_clist()` can be instantiated with 2, 3, 4, or 7 arguments in the global scope. @@ -21,7 +21,7 @@ Default values are given above for args not specified. `X` is a type tag name an will affect the names of all clist types and methods. E.g. declaring `using_clist(my, int);`, `X` should be replaced by `my` in all of the following documentation. `using_clist_str()` is a shorthand for ```c -using_clist(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_to_raw, cstr_from) +using_clist(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_from, cstr_to_raw) ``` ## Types diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 74ad7e55..69c975af 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -13,8 +13,8 @@ See [std::unordered_map](https://en.cppreference.com/w/cpp/container/unordered_m keyHashRaw=c_default_hash, keyDestroy=c_default_del, RawKey=Key, - keyToRaw=c_default_to_raw, keyFromRaw=c_default_from_raw, + keyToRaw=c_default_to_raw, RawMapped=Mapped, mappedFromRaw=c_default_from_raw) @@ -24,8 +24,8 @@ See [std::unordered_map](https://en.cppreference.com/w/cpp/container/unordered_m keyHash=c_default_hash, keyDestroy=c_default_del, RawKey=Key, - keyToRaw=c_default_to_raw, - keyFromRaw=c_default_from_raw) + keyFromRaw=c_default_from_raw, + keyToRaw=c_default_to_raw) #define using_cmap_str() ``` The macro `using_cmap()` can be instantiated with 3, 4, 6, 10, or 12 arguments in the global scope. @@ -39,7 +39,7 @@ be replaced by `my` in all of the following documentation. `using_cmap()`. The macro `using_cmap_str()` is a shorthand for ```c using_cmap(str, cstr_t, cstr_t, cstr_del, cstr_equals_raw, cstr_hash_raw, - cstr_del, const char*, cstr_to_raw, cstr_from, const char*, cstr_from) + cstr_del, const char*, cstr_from, cstr_to_raw, const char*, cstr_from) ``` ## Types diff --git a/docs/cvec_api.md b/docs/cvec_api.md index d3b1aff7..435c2a3d 100644 --- a/docs/cvec_api.md +++ b/docs/cvec_api.md @@ -10,8 +10,8 @@ See [std::vector](https://en.cppreference.com/w/cpp/container/vector) for a simi #define using_cvec(X, Value, valueCompareRaw=c_default_compare, valueDestroy=c_default_del, RawValue=Value, - valueToRaw=c_default_to_raw, - valueFromRaw=c_default_from_raw) + valueFromRaw=c_default_from_raw, + valueToRaw=c_default_to_raw) #define using_cvec_str() ``` The macro `using_cvec()` can be instantiated with 2, 3, 4, or 7 arguments in the global scope. @@ -21,7 +21,7 @@ be replaced by `my` in all of the following documentation. `using_cvec_str()` is a shorthand for: ``` -using_cvec(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_to_raw, cstr_from) +using_cvec(str, cstr_t, cstr_compare_raw, cstr_del, const char*, cstr_from, cstr_to_raw) ``` ## Types -- cgit v1.2.3