stx/1.0.5

C++17 & C++ 20 error-handling and utility extensions.
Recipe info
2023-11-25

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
stx/1.0.5

Using stx

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
stx/1.0.5
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("stx/1.0.5")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): stx
  • CMake target name(s): stx::stx
  • pkg-config file name(s): stx.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(stx REQUIRED)
# ...
target_link_libraries(YOUR_TARGET stx::stx)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the stx homepage listed above:

#include "stx/allocator.h"
#include "stx/async.h"
#include "stx/backtrace.h"
#include "stx/c_string_view.h"
#include "stx/common.h"
#include "stx/config.h"
#include "stx/enable_if.h"
#include "stx/enum.h"
#include "stx/err.h"
#include "stx/fn.h"
#include "stx/limits.h"
#include "stx/lock_status.h"
#include "stx/manager.h"
#include "stx/memory.h"
#include "stx/none.h"
#include "stx/ok.h"
#include "stx/option.h"
#include "stx/option_result/impl/check_value_type.h"
#include "stx/option_result/impl/option_storage.h"
#include "stx/option_result/impl/panic_helpers.h"
#include "stx/option_result/impl/result_storage.h"
#include "stx/option_result/impl/try.h"
#include "stx/panic.h"
#include "stx/panic/default.h"
#include "stx/panic/hook.h"
#include "stx/panic/print.h"
#include "stx/panic/report.h"
#include "stx/rc.h"
#include "stx/result.h"
#include "stx/scheduler.h"
#include "stx/scheduler/scheduling/await.h"
#include "stx/scheduler/scheduling/delay.h"
#include "stx/scheduler/scheduling/schedule.h"
#include "stx/scheduler/thread_pool.h"
#include "stx/scheduler/thread_slot.h"
#include "stx/scheduler/timeline.h"
#include "stx/some.h"
#include "stx/source_location.h"
#include "stx/span.h"
#include "stx/spinlock.h"
#include "stx/stream.h"
#include "stx/string.h"
#include "stx/struct.h"
#include "stx/task/chain.h"
#include "stx/task/id.h"
#include "stx/task/priority.h"
#include "stx/text.h"
#include "stx/try_ok.h"
#include "stx/try_some.h"
#include "stx/vec.h"
#include "stx/void.h"