1ms Faster
Home
  • Program

    • Lean in C++
  • Perfromance Engineering

    • [>>>>>]
  • Reading Note

    • [>>>>>]
  • ComputeArch

    • [_]
  • Compiler

    • [_]
  • System

    • [_]
Authoring
  • Categories
  • Tags
GitHub (opens new window)

Quincy Jet

We are.
Home
  • Program

    • Lean in C++
  • Perfromance Engineering

    • [>>>>>]
  • Reading Note

    • [>>>>>]
  • ComputeArch

    • [_]
  • Compiler

    • [_]
  • System

    • [_]
Authoring
  • Categories
  • Tags
GitHub (opens new window)
  • Lean in c++

  • Performance Engineering

  • Misc

  • Reading Notes

    • Effective C++

      • 习惯C++
      • 构造,析构, 和重载赋值运算符
      • 资源管理
      • 设计与声明
      • 实现Implementations
      • 继承与OOP
      • 模板,Templates and GP
      • 定制new和delete
        • 定制new和delete
          • Item 49:了解new-handler的行为 Understand the behavior of the new-handler.
          • Item 50:了解new和delete的合理替换时机 Understand when it makes sense to replace new and delete.
          • Item 51:编写new和delete时需固守常规 Adhere to convention when writing new and delete.
          • Item 52:写了placement new也要写placement delete Write placement delete if you write placement new.
      • 杂项, Misc
    • More Effective C++

    • 《C++ 性能优化指南》
  • Wiki
  • Reading Notes
  • Effective C++
Quincy Jet
2022-06-27
Content

定制new和delete

# 定制new和delete

# Item 49:了解new-handler的行为 Understand the behavior of the new-handler.

  1. new handler的行为(处理new失败时候throw的异常), 底层是怎样构成的?

# Item 50:了解new和delete的合理替换时机 Understand when it makes sense to replace new and delete.

  1. operator new和operator delete的合理替换时机;

# Item 51:编写new和delete时需固守常规 Adhere to convention when writing new and delete.

  1. operator new和operator delete需要遵循的一些规则

# Item 52:写了placement new也要写placement delete Write placement delete if you write placement new.

  1. placement new和placement delete
模板,Templates and GP
杂项, Misc

← 模板,Templates and GP 杂项, Misc→

Copyright © 2017-2023 Quincy Jet | MIT License
  • Auto
  • Light
  • Dark
  • Read