tiny-optional

Replacement for std::optional that does not unnecessarily waste memory

Latest version: 1.5.3

Add to xmake.lua

add_requires("tiny-optional 1.5.3")

Learn how to add and link packages with Xmake →

Information

License
BSL-1.0
Kind
library
Recipe updated
2026-02-24T05:16:40.000Z

Platforms

  • linux: i386, x86_64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • msys: i386, x86_64
  • mingw: i386, x86_64
  • bsd: i386, x86_64, ppc, ppc64, ppc64el, riscv64, sparc64
  • windows: x86, x64
  • android: riscv64, x86, x86_64, mips, mip64
  • macosx: x86_64

Options

No configurable options.

Versions

  • v1.2.0
  • v1.2.1
  • v1.3.1
  • v1.4.0
  • v1.5.2
  • v1.5.3

Dependencies

No dependencies declared.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "tiny-optional 1.5.3"

show info

xrepo info "tiny-optional"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("tiny-optional 1.5.3")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("tiny-optional")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "tiny-optional 1.5.3" shell