# libtmux::Server::validate_layouts

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/9645e54239e040aa6f2bd6bf42c2fbe1aaf38250/include/libtmux/server.hpp#L364
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-server-validate_layouts/

```
[[nodiscard]] expected<void, LayoutFailure>
validate_layouts(
    std::span<const LayoutRequest> layouts) const;
```

Validate the complete batch's syntax before any I/O, then ask for the release once for version-dependent names or v2 JSON layouts: the daemon's when one answers, otherwise the executable's.

No layout is applied.

## Parameters

- `layouts` (`std::span<const LayoutRequest>`)
