# libtmux::variable

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/format.hpp#L32
- **Page:** https://libtmux.org/reference/cxx/libtmux-variable/

```
libtmux::variable(name: std::string_view) -> std::string
```

Wrap a variable name as a substitution.

The name is not escaped: a name is chosen by the caller from tmux's format vocabulary, not built from data.
