From bf00ed0e7023cf49cf004dd4b4b39af2b824681e Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 5 Oct 2021 09:00:28 +0200 Subject: Changed recommended order of defining template parameters. --- docs/cpque_api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/cpque_api.md') diff --git a/docs/cpque_api.md b/docs/cpque_api.md index 4e58a323..4f22fe0e 100644 --- a/docs/cpque_api.md +++ b/docs/cpque_api.md @@ -8,13 +8,13 @@ See the c++ class [std::priority_queue](https://en.cppreference.com/w/cpp/contai ## Header file and declaration ```c -#define i_tag // defaults to i_val name #define i_val // value: REQUIRED #define i_cmp // three-way compare two i_valraw* : REQUIRED IF i_valraw is a non-integral type +#define i_del // destroy value func - defaults to empty destruct #define i_valraw // convertion "raw" type - defaults to i_val #define i_valfrom // convertion func i_valraw => i_val - defaults to plain copy #define i_valto // convertion func i_val* => i_valraw - defaults to plain copy -#define i_valdel // destroy value func - defaults to empty destruct +#define i_tag // defaults to i_val #include ``` `X` should be replaced by the value of `i_tag` in all of the following documentation. @@ -58,9 +58,9 @@ cpque_X_value_t cpque_X_value_clone(cpque_X_value_t val); #include #include -#define i_tag i #define i_val int64_t #define i_cmp -c_default_compare // min-heap +#define i_tag i #include int main() -- cgit v1.2.3