mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
cbfd8cd734
Allows independently controlling handling of different categories of bugs, such as bounds checks vs. null checks. User-extensible: Companies can instantiate their own `contract_group` objects for their own categories of contract checks, including for distinguishing contract "levels" like `Normal` vs. `Audit` by just creating those two groups that can then be controlled independently or in combination.
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
|
|
//
|
|
// This code is licensed under the MIT License (MIT).
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef GSL_GSL_H
|
|
#define GSL_GSL_H
|
|
|
|
#include <gsl/algorithm> // copy
|
|
#include <gsl/assert> // contracts
|
|
#include <gsl/byte> // byte
|
|
#include <gsl/pointers> // owner, not_null
|
|
#include <gsl/multi_span> // multi_span, strided_span...
|
|
#include <gsl/span> // span
|
|
#include <gsl/string_span> // zstring, string_span, zstring_builder...
|
|
#include <gsl/util> // finally()/narrow_cast()...
|
|
|
|
#ifdef __cpp_exceptions
|
|
#include <gsl/narrow> // narrow()
|
|
#endif
|
|
|
|
#endif // GSL_GSL_H
|