def is_union(declaration):
if not is_class(declaration):<EOL><INDENT>return False<EOL><DEDENT>decl = class_traits.get_declaration(declaration)<EOL>return decl.class_type == class_declaration.CLASS_TYPES.UNION<EOL>
Returns True if declaration represents a C++ union

Args:
    declaration (declaration_t): the declaration to be checked.

Returns:
    bool: True if declaration represents a C++ union