logo
  • 教程列表
  • SO官方文檔
  • 行內函數
    • 非成員行內函數宣告
    • 非成員行內函數定義
    • 成員行內函數
    • 什麼是函式內聯
  1. StackOverflow 文件
  2. C++ 教程
  3. 行內函數
  4. 成員行內函數

成員行內函數

Created: November-22, 2018

// header (.hpp)    
struct A
{
    void i_am_inlined()
    {
    }
};

struct B
{
    void i_am_NOT_inlined();
};

// source (.cpp)    
void B::i_am_NOT_inlined()
{
}
  • 什麼是函式內聯
  • 非成員行內函數定義

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明