# libtmux::variable

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/format.hpp#L32
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
