---
layout: "default"
title: "HalfOpenInterval"
description: "Swift documentation for 'HalfOpenInterval': A half-open IntervalType, which contains its start but not its."
keywords: "HalfOpenInterval,struct,swift,documentation,clamp,contains,overlaps,debugDescription,description,end,isEmpty,start"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">struct HalfOpenInterval&lt;Bound : Comparable&gt;</code></div>

<div class="discussion comment">
    <p>A half-open <code>IntervalType<