# libtmux::parse_version

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/version.hpp#L65
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-parse_version/

```
libtmux::parse_version(output: std::string_view) -> expected< Version, VersionError >
```

Parse the first line of `tmux -V`, with or without its trailing newline.
