Check if two structures at the same size.
This function only checks the runtime sizes for variables that implement a size()
method.
- Template Parameters
-
T_y1 | Type of the first variable |
T_y2 | Type of the second variable |
- Parameters
-
function | Function name (for error messages) |
name1 | First variable name (for error messages) |
y1 | First variable |
name2 | Second variable name (for error messages) |
y2 | Second variable |
- Exceptions
-
<code>std::invalid_argument</code> | if the sizes do not match |
Definition at line 24 of file check_matching_sizes.hpp.