# libtmux::split_row

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