---
layout: "default"
title: "IntervalType"
description: "Swift documentation for 'IntervalType': An interval over a Comparable type."
keywords: "IntervalType,protocol,swift,documentation,clamp,contains,end,isEmpty,start,Bound"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol IntervalType</code></div>

<div class="discussion comment">
    <p>An interval over a <code>Comparable</code> type.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
