text stringlengths 7 961k |
|---|
// *****************************************************************************
// *****************************************************************************
// Copyright 2012 - 2013, Cadence Design Systems
//
// This file is part of the Cadence LEF/DEF Open Source
// Distribution, Product Version 5.8. ... |
//===- AArch64ExpandPseudoInsts.cpp - Expand pseudo instructions ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "../../include/AllocatorManager.hpp"
#include "ChunkList.hpp"
#include "UnitTest.hpp"
#include <chrono>
#include <iostream>
#include <mutex>
#include <thread>
#include <cassert>
using namespace memwa;
typedef std::unique_lock< std::mutex > MyLockGuard;
typedef std::chrono::duration< unsigned int, std::mi... |
#include <iostream>
#include <span>
#include <stdexcept>
#include <vector>
using uint64 = uint64_t;
using uint32 = uint32_t;
using int64 = int64_t;
using int32 = int32_t;
template <typename T> using Vec = std::vector<T>;
using IntVec = Vec<int>;
using Adjacent = Vec<Vec<bool>>;
using Graph = Vec<Vec<int>>;
class Ra... |
#ifndef PYTHONIC_INCLUDE_BUILTIN_SYSTEMEXIT_HPP
#define PYTHONIC_INCLUDE_BUILTIN_SYSTEMEXIT_HPP
#include "pythonic/include/types/exceptions.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
PYTHONIC_EXCEPTION_DECL(SystemExit)
}
PYTHONIC_NS_END
#endif |
/*
* intrusive_ptr.hpp
*
* Created on: Apr 25, 2019
* Author: bryan.flynt
*/
#ifndef INCLUDE_XSTD_DETAIL_MEMORY_INTRUSIVE_INTRUSIVE_PTR_HPP_
#define INCLUDE_XSTD_DETAIL_MEMORY_INTRUSIVE_INTRUSIVE_PTR_HPP_
#include "xstd/assert.hpp"
#include <cstddef> // std::nullptr_t
#include <functional> // std::le... |
/* $Id: types.hpp 4742 2014-02-12 05:18:31Z bennylp $ */
/*
* Copyright (C) 2013 Teluu Inc. (http://www.teluu.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the... |
#include <Display.h>
#include <Utils.h>
#include <SDL.h>
#include <Surface.h>
#include <ExternalInterface.h>
#include <KeyCodes.h>
#include <map>
#ifdef BLACKBERRY
#include <SDL_syswm.h>
#include <bps/sensor.h>
#include <bps/virtualkeyboard.h>
#endif
#ifdef WEBOS
#include "PDL.h"
#include <syslog.h>
#endif
#ifdef RA... |
/******************************************************************************\
Copyright (c) 2005-2018, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source c... |
#include "lak/algorithm.hpp"
#include "lak/compiler.hpp"
#include "lak/memmanip.hpp"
#include "lak/span.hpp"
/* --- fixed size --- */
template<typename T, size_t SIZE>
constexpr lak::packed_array<T, SIZE>::packed_array(
packed_array<T, SIZE> &&other)
{
lak::swap(_value, other._value);
lak::swap(_next, other._next... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cstddef>
#include <iterator>
#include <numeric>
#include "DataStructures/Tensor/Expressions/Evaluate.hpp"
#include "DataStructures/Tensor/Expressions/Product.hpp"
#include "DataStructures/Tensor/... |
#include<bits/stdc++.h>
#include<conio.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL);
#define aa auto
#define cn const
#define ll long long
#define ld long double
#define fr first
#define sc ... |
/*
* Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses... |
/*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
/***************************************************************************
* This file is part of the CuteReport project *
* Copyright (C) 2012-2015 by Alexander Mikhalov *
* alexander.mikhalov@gmail.com *
* ... |
// Time: O(n)
// Space: O(1)
class Solution {
public:
int scoreOfParentheses(string S) {
int result = 0, depth = 0;
for (int i = 0; i < S.length(); ++i) {
if (S[i] == '(') {
++depth;
} else {
--depth;
if (S[i - 1] == '(') {
... |
#pragma once
#include "../../JObject.hpp"
class JFloatArray;
namespace android::os
{
class Handler;
}
namespace android::graphics
{
class SurfaceTexture : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit SurfaceTexture(const char *className, const char *sig, Ts.... |
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "fiDevice.h"
#include "CrossLibraryInterfaces.h"
namespace rage
{
WRAPPER fiDevice* fiDevice::GetDevice(const cha... |
#ifndef _VKDEVICEUTIL_HPP
#define _VKDEVICEUTIL_HPP
/*-------------------------------------------------------------------------
* Vulkan CTS Framework
* --------------------
*
* Copyright (c) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... |
//-----------------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2019 Juho Lepistö
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2017-2020 The UNNY developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or htt... |
#ifndef __GAME_ACT_CHEMICAL_FACTORY_HPP__
#define __GAME_ACT_CHEMICAL_FACTORY_HPP__
#include "ObjectsFactory.hpp"
namespace GameAct
{
class ChemicalFactory :
public ObjectsFactory
{
public:
Object * createObject( const std::string & name ) const override;
};
}
#endif |
#ifndef __PIPE_OP__
#define __PIPE_OP__
#include <unistd.h>
#include <sys/wait.h>
#include "Executable.hpp"
#include "Connector.hpp"
#include "Cmnd.hpp"
class Pipe_op : public Connector {
public:
Pipe_op();
string getType() { return "PIPE"; }
bool run_command();
void set_left(Executable*);
void set_right(Ex... |
/**
* IR receiver (Version 0.0.4)
*
*/
#include "ReceiverIR.h"
#define LOCK()
#define UNLOCK()
#define InRange(x,y) ((((y) * 0.7) < (x)) && ((x) < ((y) * 1.3)))
/**
* Constructor.
*
* @param rxpin Pin for receive IR signal.
*/
ReceiverIR::ReceiverIR(PinName rxpin) : evt(rxpin) {
init_state();
evt... |
/**********************************************************************
This source file is a part of Demi3D
__ ___ __ __ __
| \|_ |\/|| _)| \
|__/|__| || __)|__/
Copyright (c) 2013-2014 Demi team
https://github.com/wangyanxing/Demi3D
Released under the MIT License
https://github.com/wangyanxing/De... |
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
/*=========================================================================
Copyright (c) Kitware Inc.
All rights reserved.
=========================================================================*/
// .SECTION Description
// This program illustrates the use of the vtkHyperTreeGrid
// data set and various filters ac... |
/*
* Copyright 2010, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Clemens Zeidler <haiku@clemens-zeidler.de>
*/
#include "Stacking.h"
#include <Debug.h>
#include "StackAndTilePrivate.h"
#include "Desktop.h"
#include "SATWindow.h"
#include "Window.h"
//#define DEBUG_STACKING
#ifd... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmSystemTools.h"
#include "cmAlgorithms.h"
#include "cmProcessOutput.h"
#include "cm_sys_stat.h"
#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmArchiveWrite.h"... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
#include "PositionMap.h"
int main(int argc, char** argv) {
if (argc < 2) {
std::cerr << "Usage: linem... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "protocol.h"
#include "util.h"
#include "netbase.h"
#include "main.h"
#i... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/execution/operator/join/physical_delim_join.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/types/chunk_collec... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
#include "AppHdr.h"
#include "ng-wanderer.h"
#include "item-prop.h"
#include "ng-setup.h"
#include "potion-type.h"
#include "randbook.h"
#include "random.h"
#include "skills.h"
#include "spl-book.h" // you_can_memorise
#include "spl-util.h"
static void _give_wanderer_weapon(skill_type wpn_skill, int plus)
{
if (... |
/****************************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
/**
* @file VertexSet_test.cpp
* @brief Unit tests for the VertexSet class.
* @author Dominique LaSalle <dominique@solidlake.com>
* Copyright 2017-2018
* @version 1
* @date 2018-01-14
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2020 The Adeptio developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "spork.h"
#include "bas... |
#include <graphene/chain/wasm_constraints.hpp>
#include <graphene/chain/wasm_validation.hpp>
#include <graphene/chain/wasm_binary_ops.hpp>
#include <fc/exception/exception.hpp>
#include <graphene/chain/exceptions.hpp>
#include "IR/Module.h"
#include "IR/Operators.h"
#include "WASM/WASM.h"
namespace graphene { namespac... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 Bitcoin developers
// Copyright (c) 2014-2015 Dash developers
// Copyright (c) 2015-2017 PIVX developers
// Copyright (c) 2018-2019 Genero developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//
// detail/win_iocp_operation.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef A... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/proxy/proxy_resolver_winhttp.h"
#include <windows.h>
#include <winhttp.h>
#include "base/metrics/histogram.h"
#include "base/strings/s... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/js-heap-broker.h"
#include "src/common/globals.h"
#include "src/compiler/heap-refs.h"
#ifdef ENABLE_SLOW_DCHECKS
#include <algor... |
extern "C" {
#include "csuperglue.h"
}
#include "sg/superglue.hpp"
#ifdef SG_LOGGING
#include "sg/option/instr_trace.hpp"
#endif
#include "sg/platform/gettime.hpp"
#include <cassert>
#include <map>
#include <vector>
#include <stdarg.h>
struct Options : public DefaultOptions<Options> {
typedef Enable PauseExecut... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
#include "channel_auth.hpp"
#include <ipmid/api.h>
#include <user_channel/channel_layer.hpp>
#include <user_channel/user_layer.hpp>
namespace command
{
std::vector<uint8_t>
GetChannelCapabilities(const std::vector<uint8_t>& inPayload,
const message::Handler& handler)
{
auto reques... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2017 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <atomic>
#include "configure.hpp"
namespace mango
{
/* WARNING!
Atomic locks are implemented as busy loops which consume significant
amounts of CPU time... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/CallbackBase.hpp>
namespace RED4ext
{
namespace ink {
struct StepperChangedCallback : ink::CallbackBase
{
static constexpr const char* NAME = ... |
#include "undoedits.h"
#include "nodeproperties.h"
#include "propertyeditor.h"
#include "zodiacgraph/plug.h"
#include "zodiacgraph/plugedge.h"
#include <QDebug>
TextEditCommand::TextEditCommand(bool isDescription, const QString &oldText, const QString &newText, NodeCtrl* node, void (NodeCtrl::*nameChangeFunc)(const ... |
/*!
@file
Forward declares `boost::hana::less`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_LESS_HPP
#define BOOST_HANA_FWD_LESS_HPP
#include <boost/hana/config.h... |
////////////////////////////////////////////////////////////////////////////////////////////////////////
// Part of Injectable Generic Camera System
// Copyright(c) 2017, Frans Bouma
// All rights reserved.
// https://github.com/FransBouma/InjectableGenericCameraSystem
//
// Redistribution and use in source and binary ... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/vyigrat-config.h"
#endif
#include <cstddef>
#if defined(HAVE_SYS_SELECT_H)
#inc... |
//Problem Statement
// We are given that the string "abc" is valid.
//
// From any valid string V, we may split V into two pieces X and Y such that X + Y
// (X concatenated with Y) is equal to V. (X or Y may be empty.)
// Then, X + "abc" + Y is also valid.
//
// If for example S = "abc", then examples of valid strings... |
//===--- UUID.h - UUID generation -------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-03-14 13:37:02
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace st... |
/*
License: BSD
https://raw.githubusercontent.com/samiamlabs/dyno/master/LICENCE
*/
#include <ros/ros.h>
#include <rosgraph_msgs/Clock.h>
#include <controller_manager/controller_manager.h>
#include "forklift.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "forklift_unity_interface");
ros::NodeHandle n... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... |
#include "SDLTypingHandler.hpp"
#include <SDL/SDL.h>
#include <string>
using namespace std;
void SDLTypingHandler::update(SDL_Event event)
{
if(SDL_EnableUNICODE(-1)) unicode_enabled_globally = true;
else {
unicode_enabled_globally = false;
SDL_EnableUNICODE(1);
}
if(event.type == SDL_KEY... |
#include "opentick.h"
#include "logger.h"
namespace opentrade {
struct OpenTickLogger : public opentick::Logger {
void Info(const std::string& msg) noexcept override { LOG_INFO(msg); }
void Error(const std::string& msg) noexcept override { LOG_ERROR(msg); }
};
void OpenTick::Initialize(const std::string& url) {... |
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id$
// $Date$
// $Revision$
#include <boost/mpl/joint_... |
// Copyright (c) 2018 The Emircoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/threadnames.h>
#include <test/setup_common.h>
#include <thread>
#include <vector>
#include <set>
#include <mutex>... |
/**
* Copyright 2004-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Yiffcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ui_interface.h"
#include "init.h"
#include "yiffcoinrpc.h"
#include <string... |
#include "GraphReader.h"
#include "Vertex.h"
#include "PreferenceList.h"
#include "Utils.h"
#include <cstdlib>
#include <iostream>
#include <stdexcept>
/// Lexer class defined here
Lexer::Lexer(std::istream& in)
: ch_(' '), lineno_(0), in_(in)
{
if (not in_) {
throw ReaderException("error reading inpu... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
#include <simpleble_c/simpleble.h>
#include <cstdlib>
void simpleble_free(void* handle) {
free(handle);
} |
// Copyright (c) 2012-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Sucrecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include "cuckoocache.h"
#include "scr... |
//
// Copyright (c) 2019 Maxime Pinard
//
// Distributed under the MIT license
// See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT
//
#include <sul/dynamic_bitset.hpp>
#include <iostream>
int main()
{
std::cout << std::boolalpha;
// declare bitset with 12 bits from a value
sul::dyna... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018 The Zumba Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit... |
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2004-2007 Jonathan Turkanis
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for docume... |
#include <atomic>
#include <boost/test/unit_test.hpp>
#include <boost/throw_exception.hpp>
#include <glo.hpp>
using namespace glo;
using namespace std;
BOOST_AUTO_TEST_CASE(test_format_pointer_to_updating_string)
{
string val = "str";
group g;
g.add(&val, "a_str", {tag::COUNT}, 0, "A string.");
{
... |
/*
Copyright (c) 2009-2010 Christopher A. Taylor. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions... |
#ifndef DISKCHANGER_HH
#define DISKCHANGER_HH
#include "DiskContainer.hh"
#include "StateChangeListener.hh"
#include "serialize_meta.hh"
#include "span.hh"
#include <functional>
#include <memory>
#include <string>
namespace openmsx {
class CommandController;
class StateChangeDistributor;
class Scheduler;
class MSXMo... |
// This file was generated based on '(multiple files)'.
// WARNING: Changes might be lost if you edit this file directly.
#include <duktape_helpers.h>
#include <Fuse.Scripting.Callback.h>
#include <Fuse.Scripting.Duktape.callback.h>
#include <Fuse.Scripting.Duktape.CallbackClosure.h>
#include <Fuse.Scripting.Duktape.C... |
//==-- AArch64ExpandPseudoInsts.cpp - Expand pseudo instructions --*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**!
* \file strongly_connected_components_test.cpp
* \brief Tests: Algorithm for strongly connected components
*/
#include <algorithm>
#include <gtest/gtest.h>
#include "algolib/graphs/algorithms/strongly_connected_components.hpp"
namespace algr = algolib::graphs;
using graph_t = algr::directed_simple_graph<>;
us... |
#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define CLR(t, value) memset(t, value, sizeof(t))
#define ALL(v) v.begin(), v.end()
#define SZ(v) ((int)(v).size())
#define TEST(x) cerr << "test " << #x << " " << x << endl;
#define sc(x) scanf("%d",... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// Copyright (c) 2013-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Unit tests for alert system
#include "alert.h"
#include "chain.h"
#include "chainparams.h"
#include "clientversion.h"
#in... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8TestException.h"
#include "bindings/core/v8... |
#include "safe_vector.hpp"
#include "../shared.hpp"
int main() {
LM::safe_vector v;
std::cout << v.getat(2).value_or(69) << "\n";
} |
// (C) Copyright 2016-2021 Xilinx, Inc.
// All Rights Reserved.
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to yo... |
#include "ASTBlockStmt.h"
#include "ASTVisitor.h"
#include "ASTinternal.h"
std::vector<ASTStmt*> ASTBlockStmt::getStmts() const {
return rawRefs(STMTS);
}
void ASTBlockStmt::accept(ASTVisitor * visitor) {
if (visitor->visit(this)) {
for (auto s : getStmts()) {
s->accept(visitor);
}
}
visitor->en... |
/**********************************************************************
Audacity: A Digital Audio Editor
ExportFLAC.cpp
Frederik M.J.V
This program is distributed under the GNU General Public License, version 2.
A copy of this license is included with this source.
Based on ExportOGG.cpp by:
Joshua Haberman
Portio... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
//===--- CGDebugInfo.cpp - Emit Debug Information for a Module ------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "constant_calculation_rule.hpp"
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "constant_mappings.hpp"
#include "expression/abstract_expression.hpp"
#include "expression/abstract_predicate_expression.hpp"
#include "expression/evaluation/expression_ev... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this wh... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <cmath>
#include <cstring>
#include <sstream>
#include <algorithm>
#include <OpenColorIO/OpenColorIO.h>
#include "HashUtils.h"
#include "ops/exponent/ExponentOp.h"
#include "GpuShaderUtils.h"
#include "MathUtils.h... |
/*
* Copyright 2002-2011, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
#include "legacy_drivers.h"
#include <dirent.h>
#include <errno.h>
#include <new>
#include <stdio.h>
#include <FindDirectory.h>
#include <image.h>
#include <NodeMonitor.h>
#include <boot_device.h... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
#ifndef DARKSTARDTSCONVERTER_PAL_VIEW_HPP
#define DARKSTARDTSCONVERTER_PAL_VIEW_HPP
#include "graphics_view.hpp"
namespace studio::views
{
class pal_view
{
public:
explicit pal_view(std::basic_istream<std::byte>& image_stream);
std::map<sf::Keyboard::Key, std::reference_wrapper<std::function<void(const ... |
/*
* Copyright 2019 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
#include "FBRenderer.h"
#include <exception>
#include <iostream>
#include "IRenderer.h"
// for windows
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
using namespace fb;
typedef fb::IRenderer* (*CreateRendererD3D12)();
IRenderer* fb::InitRenderer(RendererType type, void* windowHandle)
{
std::wcout << L"fb::InitRe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.