# libtmux::split_row

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

```
libtmux::split_row(line: std::string_view, fields: std::size_t, values: std::vector< std::string_view > &) -> bool
```

Split one tmux output line into its field values.

The trailing separator emitted by `format_request` produces one empty tail element, which is dropped; a short or long row is reported rather than padded so a format-name typo cannot masquerade as an empty field.
