KO
|
EN
gitlite — search
Search
#python
#ai-agent
#automation
#mcp-server
#agentic-ai
#genpark
#llm-tools
#claude-code
#linux
#open-source
#typescript
#ai-agents
swl-optional
★ 32
Open GitHub ↗
std::optional for C++20
Download README (.md)
Explore Similar Repositories
rabbitMQ-learning
:
rabbitMQ的入门和进阶实战
knowledge-base
:
Gruntwork Knowledge Base. You are more than welcomed to create questions and share knowledge with our community.
building-inspection-toolkit
:
Building Inspection Toolkit
IB-IRM
:
No description available.
yui-docs
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
swl-optional
?
Download (.md)
# swl::optional A standard conforming C++20 implementation of `std::optional`. C++20 came with new features that makes the implementation of `std::optional` (and other types based on unions) a lot simpler to write, faster to compile, and more debugger-friendly (ever crawled through all the `std::optional` base classes in your IDE debugger?). \ So if you're using `optional`a lot in C++20, switching to this implementation is free cookies. ## Testing The tests were adapted from [TartanLlama's optional](https://github.com/TartanLlama/optional) with some bits from the LLVM repo. Kudos to them. \ To run the tests : \ `mkdir ./test_out` \ `cd test_out` \ `cmake ../` \ `ctest --build-and-test ../ ./ --build-generator "Unix Makefiles"` (replace "Unix Makefiles" as needed) \ `make test` ## Tested compilers - GCC 11+ - GCC 10+ (the early 10.X versions have a bug in `std::construct_at`, which prevent to use it in a constexpr context, hence the tests might not compile) - Clang will not fully work as its implementation of C++20 is still incomplete (Clang 12+ will work for trivially destructible type)