text
stringlengths
7
961k
/** Regardless of our limitations, we can always be of some use. Our power may seem insignificant… but it may just prove to be useful in the grand scheme of things. Stay focused. Never avert your eyes, because if an opening arises, even our insignificant power may be enough to determine the fate of the world. ...
// // Copyright 2020 Autodesk // // 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 ...
#pragma once #include <QString> #include <QMetaType> #include "zeus/Math.hpp" enum class Platform { Invalid, MacOS, Win32, Linux, MAXPlatform }; QString PlatformToString(Platform plat); Platform StringToPlatform(const QString& str); #if __APPLE__ constexpr Platform CurPlatform = Platform::MacOS; #elif _WIN32 constex...
// GridCtrl.cpp : implementation file // // MFC Grid Control v2.26 // // Written by Chris Maunder <chris@codeproject.com> // Copyright (c) 1998-2005. All Rights Reserved. / // The code contained in this file was based on the original // WorldCom Grid control written by Joe Willcoxson, // mailto:chinajoe@aol.com ...
// // Copyright (c) 2012-2014 The ANGLE 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. // // RenderTarget9.cpp: Implements a D3D9-specific wrapper for IDirect3DSurface9 // pointers retained by renderbuffers. #include "libAN...
// 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. #include "chrome/browser/devtools/device/tcp_device_provider.h" #include <utility> #include "base/location.h" #include "base/single_thread_task_runner.h...
/* Copyright 2016-2020 Intel Corporation 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 (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include <iostream> #include <stdlib.h> #define MAX 4 using namespace std; int main() { int mat[MAX][MAX]; int linha, coluna, i, qde, acc, maior, menor; char escolha; do { system("cls"); cout << "---------------------- M E N U--------------------\n\n"; cout << "\n1 - Inse...
/* * * Copyright (c) 2021 Project CHIP 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...
/* Author: Zachary Kingston */ #include <moveit_benchmark_suite/io.h> #include <moveit_benchmark_suite/io/gnuplot.h> #include <moveit_benchmark_suite/yaml.h> #include <moveit_benchmark_suite/token.h> #include <cmath> using namespace moveit_benchmark_suite::IO; #if IS_BOOST_164 namespace bp = boost::process; #endif ...
version https://git-lfs.github.com/spec/v1 oid sha256:75e0aa313cb8dad528be7ae4e9daa8bd77690e299d38c91182c8913364f64b74 size 2850
#include <iostream> #include <fstream> #include <cassert> #include <cmath> #include <cstdio> #include <any> void test1(std::any arg) { std::cout << std::any_cast<int>(arg) << std::endl; } int main(int argc, char const * argv[]) { test1(100); // 100 return EXIT_SUCCESS; }
/*========================================================================= Program: MIMX Meshing Toolkit Module: $RCSfile: vtkKWMimxSurfaceMenuGroup.cxx,v $ Language: C++ Date: $Date: 2013/02/24 20:39:59 $ Version: $Revision: 1.10 $ Musculoskeletal Imaging, Modelling and Experimentation (MIMX) Center ...
// Fill out your copyright notice in the Description page of Project Settings. #include "FlibPakReader.h" #include "Misc/FileHelper.h" #include "IPlatformFilePak.h" #include "HAL/PlatformFilemanager.h" #include "Resources/Version.h" /** * Thread local class to manage working buffers for file compression */ class ...
#include "closure.h" short* itemset; short* itemsetend; unsigned* ruleset; void Closure::set_EFF(void) { register unsigned *row; register int symbol; register short *sp; register int rowsize; register int i; register int rule; rowsize = WORDSIZE(nvars); EFF = NEW2(nvars * ...
#include <Common/ThreadPool.h> #include <iostream> ThreadPool::ThreadPool(size_t m_size) : m_size(m_size) { threads.reserve(m_size); for (size_t i = 0; i < m_size; ++i) threads.emplace_back([this] { worker(); }); } void ThreadPool::schedule(Job job) { { std::unique_lock<std::mutex> lo...
#include <cmath> #include <ostream> #include "gtest/gtest.h" #include "gmock/gmock.h" #include "fundem/hazards.hpp" #include "fundem/lifetable.hpp" using namespace fundem; double epsilon = 1e-9; /*! Tests survival calculation for constant mortality rate. * */ TEST(FM_SURVIVAL_CONSTANT_MORTALITY, blah) { st...
// Copyright (c) 2003 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Id...
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.security.SignatureSpi ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATI...
/** - access to elements: O (n) - insertion: O (n) */ #pragma once #define fwd(x) std::forward <decltype (x)> (x) namespace ph::data_structures { enum struct state { }; template <typename T> struct node { constexpr node () noexcept : _next {nullptr} { ...
#include "smhasher/City.h" #include "smhasher/CityCrc.h" #include "smhasher/farmhash-c.h" #include "smhasher/metrohash.h" #include "smhasher/mum.h" #include "smhasher/MurmurHash1.h" #include "smhasher/MurmurHash2.h" #include "smhasher/MurmurHash3.h" #include "smhasher/Spooky.h" #include "t1ha/t1ha.h" #include "xxHash/x...
// MusicXML Class Library // Copyright (c) by Matthew James Briggs // Distributed under the MIT License #include "mx/core/elements/CreditType.h" #include "mx/core/FromXElement.h" #include <iostream> namespace mx { namespace core { CreditType::CreditType() :myValue() {} Credit...
#include "RF24L01.hpp" namespace IPASS { [[maybe_unused]] const uint8_t RF24L01::COMMAND::R_REGISTER = 0x00; [[maybe_unused]] const uint8_t RF24L01::COMMAND::W_REGISTER = 0x20; [[maybe_unused]] const uint8_t RF24L01::COMMAND::R_RX_PAYLOAD = 0x61; [[maybe_unused]] const uint8_t RF24L01::COMMAND::W_TX_PA...
// 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. #include "net/tools/quic/quic_simple_server.h" #include <string.h> #include "base/location.h" #include "base/single_thread_task_runner.h" #include "base...
// DualGraph.cpp // created by Kuangdai on 18-Jun-2016 // metis dual graph #include "DualGraph.h" #include "XMPI.h" #include <metis.h> #include <algorithm> #include <limits> #include <numeric> void DualGraph::formNeighbourhood(const IMatX4 &connectivity, int ncommon, std::vector<IColX> &neighbours) { // for...
/** * \file PnlWdbePrjDetail.cpp * API code for job PnlWdbePrjDetail (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #include "PnlWdbePrjDetail.h" using namespace std; using namespace Sbec...
// Copyright (c) 2015 The Truthcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QList> #include "guiutil.h" #include "main.h" #include "marketmarkettablemodel.h" #include "primitives/market.h" #inc...
#include "AutoPID.h" AutoPID::AutoPID( double* input, double* setpoint, double* output, double outputMin, double outputMax, double Kp, double Ki, double Kd ) { _input = input; _setpoint = setpoint; _output = output; _outputMin = outputMin; _outputMax = outputMax; setGains( Kp, Ki, Kd ); ...
// Benchmarks publisher#append_measurements #include <benchmark/benchmark.h> #include "spectator/publisher.h" #include <memory> using spectator::Measurement; using StrTable = ska::flat_hash_map<std::string, int>; static StrTable get_string_table() { StrTable string_table; for (auto i = 0; i < 1000; ++i) { st...
// // Created by cc on 18-11-5. // #include "UserCard.h" #include <QLabel> #include <QLineEdit> #include <QPushButton> #include <QHBoxLayout> #include <QtConcurrent> #include <QVBoxLayout> #include <QGridLayout> #include <QFrame> #include <QTextEdit> #include <QMouseEvent> #include <QApplication> #include <QFile> #in...
#include <iostream> #include <cstdlib> #include "diamond.h" Diamond::Diamond(int v) : RedCard(v) { Card::SetSuit('D'); } string Diamond::Description() const { string output = Card::Description(); output = output + ", Color = " + Card::GetColor(); output = output + ", Suit = " + Card::GetSuit(); return output...
/// \file // Range v3 library // // Copyright Eric Niebler 2013-present // // Use, modification and distribution is subject to 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) // // Project home: https://github.com/ericniebler...
#include "simlib/sandbox.hh" #include "simlib/concurrent/job_processor.hh" #include "simlib/file_manip.hh" #include "simlib/path.hh" #include "simlib/process.hh" #include "simlib/temporary_file.hh" #include "test/compilation_cache.hh" #include <chrono> #include <gtest/gtest.h> #include <iomanip> #include <linux/versio...
#include <iostream> int main() { int x = 0, y = 72, z = 0; std::cout << "Before\n\nx: " << x << " y: " << y; std::cout << " z: " << z << "\n\n"; z = x = y + 13; std::cout << "After\n\nx: " << x << " y: " << y; std::cout << " z: " << z << "\n"; return 0; }
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Fixed.hpp :+: :+: :+: ...
/* * tradingengine.cpp * * Created on: 15. 11. 2019 * Author: ondra */ #include "tradingengine.h" #include <imtjson/string.h> #include <cmath> #include "lexid.h" #include "../shared/logOutput.h" using ondra_shared::logDebug; using ondra_shared::logWarning; TradingEngine::TradingEngine(Command &&cmdFn) ...
/////////////////////////////////////////////////////////////////////////////////////////////////////// // // // ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░ // ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗ // █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║ // ██╔═██╗░░░████╔═████║░██╔...
/* Copyright (c) 2021, NVIDIA 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 * notice, this list of condi...
// 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. #include "chrome/service/cloud_print/cdd_conversion_win.h" #include "components/cloud_devices/printer_description.h" #include "printing/backend/print_bac...
/*************************************************************************/ /* project_export.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/blockchain.h> #include <amount.h> #include <blockfilter.h> #include <ch...
/* * * Copyright (c) 2016-2017 Nest Labs, 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...
/*************************************************************************/ /* mesh_instance_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* EmonLiteESP ADC121 Example Energy Monitor Library for ESP8266 based on EmonLib Currently only support current sensing Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
#ifndef BOOST_MPL_AUX_RANGE_C_BACK_HPP_INCLUDED #define BOOST_MPL_AUX_RANGE_C_BACK_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-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.b...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // clang-format off #include "net.h" #include "masternodeconfig.h" #include "util....
#include <iostream> using namespace std; int main() { int tempoInicio[1], tempoFim[1], Duracao; cin >> tempoInicio[1]; cin >> tempoFim[1]; if(tempoInicio[1] < tempoFim[1]){ Duracao = tempoFim[1] - tempoInicio[1]; } if(tempoFim[1] < tempoInicio[1]){ Duracao = (24 - tempoInic...
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
// Copyright 2015 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/objects/objects.h" #include <algorithm> #include <cmath> #include <memory> #include <sstream> #include <vector> #include "src/api/api-ar...
/* ISC License Copyright (c) 2020, Antonio SJ Musumeci <trapexit@spawn.link> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PR...
// Copyright 2016 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 "platform/graphics/paint/GeometryMapper.h" #include "platform/geometry/GeometryTestHelpers.h" #include "platform/geometry/LayoutRect.h" #include...
void moo() {} // moo NII erteke: 1 NIIwi erteke: 1 int retOne() { return 1;} // retOne NII erteke: 4 NIIwi erteke: 4 struct B { int k; B() : k(retOne()) { } void bar(); }; void B::bar() { moo(); moo(); } int aGlobal = retOne(); int secondGlobal = retOne(); int main() { B b; b.bar(); b.k =...
#include "class_9.h" #include "class_0.h" #include "class_4.h" #include "class_8.h" #include "class_9.h" #include "class_1.h" #include <lib_87/class_8.h> #include <lib_21/class_2.h> #include <lib_80/class_1.h> #include <lib_29/class_3.h> #include <lib_59/class_7.h> class_9::class_9() {} class_9::~class_9() {}
#include "SeekBehavior.h" #include "Maze.h" #include "raylib.h" void SeekBehavior::update(Agent* owner, float deltaTime) { //Don't update if disabled or no target if (!getEnabled() || !m_target) return; MathLibrary::Vector2 position = owner->getWorldPosition(); MathLibrary::Vector2 destination = m_target->getWo...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "../simcolor.h" #include "../simevent.h" #include "../display/simimg.h" #include "../simworld.h" #include "../simskin.h" #include "../sys/simsys.h" #include "../simversion.h" #include "../display/simgraph.h" ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "standardpch.h" #ifdef USE_COREDISTOOLS #include "coredistools.h" #endif // USE_COREDISTOOLS #include "lightweightmap.h" #include "commandline.h" #include "superpmi.h" #in...
// Copyright 2019 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 "tools/gn/ninja_c_binary_target_writer.h" #include <stddef.h> #include <string.h> #include <cstring> #include <set> #include <sstream> #include...
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
#include <stdlib.h> #include <stdio.h> #include <time.h> int main (void) { struct tm locTime; time_t sysTime; char *build; time(&sysTime); locTime = *localtime(&sysTime); if ((build = getenv("BUILD_NUMBER")) != NULL) { printf("#define BUILD_NUMBER %s\n", build); printf("#define BUILD_NUMBER_STR ...
// Copyright 2022 PingCAP, 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 or agreed to i...
#include "plotmain.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Plot w; w.show(); return a.exec(); }
#include <iostream> using namespace std; class Distance { public: int feet, inch; Distance(int f, int i) { this->feet = f; this->inch = i; } void operator-() { feet--; inch--; cout << "\nFeet & Inches(Decrement): " << feet << "'" << inch; } }; int main() { Distance d1(8, 9); -d...
// Copyright 2017 The Fuchsia 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 <perftest/perftest.h> #include <zircon/process.h> #include <zircon/syscalls.h> #include "lib/fxl/logging.h" namespace { bool ThreadCreateAndJoi...
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "2D/BsTextSprite.h" #include "Math/BsVector2.h" #include "Mat...
/* * Copyright (c) 2020, Intel Corporation * * 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 and t...
#include "../../interfaceslib.h" #if ENABLE_MEMTRACKING #include "untrackedmemoryresource.h" #include "memory.h" namespace Engine { namespace Debug { namespace Memory { StatsMemoryResource *UntrackedMemoryResource::sInstance() { static UntrackedMemoryResource resource; static StatsMemoryResourc...
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to TO_YEAR PrismTech * Limited, its affiliated companies and licensors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
#include "xAODAnaHelpers/HelperClasses.h" #include "xAODPrimitives/IsolationType.h" #include "xAODMuon/Muon.h" #include "ElectronPhotonSelectorTools/AsgElectronLikelihoodTool.h" #include "ElectronPhotonSelectorTools/egammaPIDdefs.h" #include "ElectronPhotonSelectorTools/LikelihoodEnums.h" #include "xAODTau/TauDefs.h" ...
// Copyright 2008, Google Inc. // 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 ...
#include <iostream> #include <conio.h> using namespace std; int main(){ int i, j; int A[3][3] = { {3, 5, 7}, {9, 11, 13}, {15, 17, 14} }; int B[3][3] = { {2, 3, 4}, {5, 6, 7}, {8, 9, 5} }; int C[3][3]; for (i = 0; i < 3; i++){ for (j = 0; j < 3; j++){ C[i][j] =...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2015-2020, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License version 1.0. //...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2001-2011 Hartmut Kaiser http://spirit.sourceforge.net/ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at h...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "sk_tool_utils.h" #include "SkBitmap.h" #include "SkShader.h" enum SrcType { //! A WxH image with a rectangle in the lower right. kRectangleI...
/* * This file is part of Nokia HEIF library * * Copyright (c) 2015-2018 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. * * Contact: heif@nokia.com * * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its * subsidiaries. All rights ar...
//===- TestDialect.cpp - MLIR Dialect for Testing -------------------------===// // // Copyright 2019 The MLIR Authors. // // 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....
/*************************************************************************/ /* quick_hull.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include <map> #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/model/BasicTypes.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/IFC4/include/IfcProjectOrderT...
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. The fuzzer must find a particular string. #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> static volatile int sink; extern "C" int LLVMFuzzerTestOn...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
#define BZ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/detail/standard_policies.hpp> using ll = int64_t; using ld = long double; using ull = uint64_t; using namespace std; using namespace __gnu_pbds; typedef vector <int> vi; typedef pair <int, int> ii; const int INF = 1 << 30;...
#include <iostream> #include <QLinkedList> #include <QString> #include <cassert> using namespace std; int main () { QLinkedList<QString> first; first << "A" << "B" << "C"; QLinkedList<QString> second; second << "D" << "E"; first << second; assert(first.size() == 5); assert(first.at(0) == "A...
// Copyright (c) 2014-2019 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <governance/governance.h> #include <consensus/validation.h> #include <governance/governance-classes.h> #include <go...
/// @file /// @author David Pilger <dpilger26@gmail.com> /// [GitHub Repository](https://github.com/dpilger26/NumCpp) /// @version 1.2 /// /// @section License /// Copyright 2019 David Pilger /// /// Permission is hereby granted, free of charge, to any person obtaining a copy of this /// software and associated documen...
/* * The following code is adapted from code originally written by Bjoern * Hoehrmann <bjoern@hoehrmann.de>. See * http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details. * * The original license: * * Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de> * * Permission is hereby granted, free of ch...
#include "tbb/concurrent_unordered_map.h" int main() { using Map = tbb::concurrent_unordered_map<int, int>; Map map = {{1, 1}, {2, 2}, {3, 3}}; // Extract an element from the container Map::node_type nh = map.unsafe_extract(2); // Change key/value of handled element nh.key() = 7; nh.mappe...
// Copyright (c) 2012 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/spdy/spdy_protocol.h" #include "base/memory/scoped_ptr.h" #include "net/spdy/spdy_bitmasks.h" #include "net/spdy/spdy_framer.h" #includ...
// Time-stamp: <2019-01-03 16:54:04 macbookair> // Units: all SI units - seconds, Volts, Ampere, Meters, Simenes, Farads #include <vector> #include <iostream> #include <cmath> #include "include/new_insilico.hpp" #include "data_types.hpp" #include "leak_pre.hpp" // leak_pre class definition void leak_pre::current(s...
//================================================================================================= /*! // \file src/mathtest/operations/dmatdmatsub/MUbM6x6b.cpp // \brief Source file for the MUbM6x6b dense matrix/dense matrix subtraction math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved ...
// Copyright 2015 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/quic/core/congestion_control/general_loss_algorithm.h" #include "net/quic/core/congestion_control/rtt_stats.h" #include "net/quic/core/quic...
version https://git-lfs.github.com/spec/v1 oid sha256:c6410e9c6b3ed3b8e94bedd72c08fd3292403b16ac81e77c85de66340d92a2c1 size 48117
#ifndef SIMPLE_LOGGER_HPP #define SIMPLE_LOGGER_HPP #include <atomic> #include <mutex> #include <sstream> enum LogLevel { logINFO, logWARNING, logDEBUG }; namespace osrm { namespace util { class LogPolicy { public: void Unmute(); void Mute(); bool IsMute() const; static LogPolicy &G...
#pragma once #include "rules.hpp" namespace cellar { using utf8_continuation = chrange<128, 191>; using utf8_2 = seq<chrange<192, 223>, utf8_continuation>; using utf8_3 = seq<chrange<224, 239>, utf8_continuation, utf8_continuation>; using utf8_4 = seq<chrange<240, 247>, utf8_continuation, utf8_continu...
// (C) Copyright John Maddock 2005. // Use, modification and distribution are subject to 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) #include "test.hpp" #include "check_type.hpp" #ifdef TEST_STD # include <type_traits> #...
#include "actorLoadEventHandler.h" #include "attackHandler.h" EventResult actorLoadEventHandler::ProcessEvent(const RE::TESObjectLoadedEvent* a_event, RE::BSTEventSource<RE::TESObjectLoadedEvent>* a_eventSource) { if (!a_event || !a_eventSource) { ERROR("Event Source not found"); return EventResult::kContinue; } ...
// // // The MIT License (MIT) // // Copyright (c) 2015 Michael J. Wouters // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights...
#include <gtest/gtest.h> #include <iostream> #include <fstream> #include "utils/file_util.h" using namespace devilution; namespace { void WriteDummyFile(const char *name, std::uintmax_t size) { std::ofstream test_file(name, std::ios::out | std::ios::trunc | std::ios::binary); ASSERT_FALSE(test_file.fail()); con...
/* * Copyright (C) 2017 Open Source Robotics Foundation * * 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 appl...
#include "emitter.hpp" namespace Calamity::EventSystem { // Constructors // // ---------------------- // BaseEmitter::BaseEmitter() { } BaseEmitter::BaseEmitter(Ref<BaseDispatcher> dispatcher) { this->m_dispatcher = dispatcher; } // Accessors and mutators ...