1+ /*
2+ * mstd - Maipa's Standard Library
3+ *
4+ * BSD 3-Clause License with Attribution Requirement
5+ *
6+ * Copyright (c) 2025, Patryk Antosik (MAIPA01)
7+ *
8+ * Redistribution and use in source and binary forms, with or without modification,
9+ * are permitted provided that the following conditions are met:
10+ *
11+ * 1. Redistributions of source code must retain the above copyright notice, this
12+ * list of conditions, and the following disclaimer.
13+ * 2. Redistributions in binary form must reproduce the above copyright notice,
14+ * this list of conditions, and the following disclaimer in the documentation
15+ * and/or other materials provided with the distribution.
16+ * 3. All advertising materials mentioning features or use of this software must
17+ * display the following acknowledgment:
18+ * - "This product includes software developed by Patryk Antosik (MAIPA01) as
19+ * part of the mstd project."
20+ * 4. If you modify this software and distribute it, you must include a notice
21+ * stating that the original work was created by Patryk Antosik (MAIPA01) as
22+ * part of the mstd project.
23+ * 5. Neither the name of the author nor the name mstd may be used to endorse or
24+ * promote products derived from this software without specific prior written
25+ * permission.
26+ * 6. Sale of unmodified code: The unmodified version of this software may not be
27+ * sold without the explicit permission of the author.
28+ * 7. Sale of modified code: Modified versions of the code may be sold, provided that:
29+ * - Proper attribution to Patryk Antosik (MAIPA01) as the original author is maintained.
30+ * - The modified code is clearly marked as a modified version.
31+ * - The modified code must be accompanied by documentation that includes
32+ * references to the original version and its author.
33+ * 8. Exception for large projects: If this code is used as part of a larger project
34+ * (e.g., an application, framework, or other libraries), permission is not required
35+ * for the sale of the unmodified version, as long as:
36+ * - The project is more than just a wrapper for the original code.
37+ * - The code is an integral part of the larger project, and the project does not
38+ * merely involve selling the original code.
39+ *
40+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
41+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
43+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
44+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
45+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
46+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
47+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
48+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49+ * OF THE POSSIBILITY OF SUCH DAMAGE.
50+ */
51+
152#pragma once
253#include " ordered_map.hpp"
354#include " ordered_set.hpp"
0 commit comments